504 server Error hile upload csv files

I have created my first dataset about text summarization i made it private for my business purpose for one.
I uploaded a file with the HfApi api from the documentation
from huggingface_hub import HfApi
api = HfApi()

api.upload_folder(
    folder_path="/home/kareem/Desktop/deep_learning/nlp/summarization_data/benchmark",
    repo_id="Abdelkareem/arabic_summarization_text",
    repo_type="dataset",
)

I have mulitple files when i try to upload them with folder of on a single file i get 504 server error i have spend around 3 hours trying agin mulitple times but in vain
any help!