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!

Hi,

Same issue for me pushing parquet files and a readme. I’m pushing using git, so I guess this is not due to the front facing API but something else internally.

Good luck solving this, team!

1 Like

I’d say this is now fixed. Thanks!

1 Like

Hi @Abdelkareem , sorry you experienced those issues. We had some extra load on the server causing timeouts this weekend. Would it be possible to retry and tell us how it goes? Also, can you add more logging to your script and then copy-paste the full output + stacktrace to this post so that we can look into it? Thanks in advance!


To enable logging, run those 2 lines at the top of your script:

from huggingface_hub import logging
logging.set_verbosity_debug()

(@graelo sorry as well about your issue but glad to know it came back to normal now :slight_smile: )

2 Likes

No worries, thanks for the update and the verbosity hint: that’s very handy!

1 Like

I worked after 2 hours correctly, thanks all ! you are dowing a great work.

I am web developer and sometime a machine learning engineer
i have a machine learning blog
and some other business website that i manage.
شركة عزل اسطح بمكة
شركة عزل أسطح بمسقط عمان
شركة عزل أسطح بالكويت
شركة تمديد غاز مركزي
لحام خزانات فيبر جلاس بمكة

Hope you find my content helpful to you!