An unexpected error

#2
by wenhu - opened
TIGER-Lab org

Hi @hysts , I am encountering "ZeroGPU worker: error HFValidationError" after every response. But the response seems to be fine.

@wenhu

Looks like your code is trying to upload user inputs and logs to a dataset repo after every response.
https://huggingface.co/spaces/TIGER-Lab/MAmmoTH-VL2/blob/d8b1b857843a2126421914f05557366969d5c929/app_test.py#L441-L455

The error in the log is related to the repo_id you are passing to api.upload_file.

  File "/usr/local/lib/python3.10/site-packages/spaces/zero/wrappers.py", line 396, in iterate
    res = next(gen)
  File "/home/user/app/app_test.py", line 442, in bot
    api.upload_file(
  File "/usr/local/lib/python3.10/site-packages/huggingface_hub/utils/_validators.py", line 106, in _inner_fn
    validate_repo_id(arg_value)
  File "/usr/local/lib/python3.10/site-packages/huggingface_hub/utils/_validators.py", line 160, in validate_repo_id
    raise HFValidationError(
huggingface_hub.errors.HFValidationError: Repo id must use alphanumeric chars or '-', '_', '.', '--' and '..' are forbidden, '-' and '.' cannot start or end the name, max length is 96: './log'.
 fill_yield_queue DONE

Apparently, you used ./log as the repo_id, but repo_id needs to be in the format user_name/repo_name.

TIGER-Lab org

Got it. It's been fixed. Thanks a lot!

wenhu changed discussion status to closed

Sign up or log in to comment