I want to inference via API using gradio_client from https://huggingface.co/spaces/jadechoghari/ferret-demo. I have been unable to do it as I get the following error. python3.11/site-packages/gradio_client/client.py", line 885, in _get_config raise ValueError(f"Could not fetch config for {self.src}") ValueError: Could not fetch config for https://huggingface.co/spaces/jadechoghari/ferret-demo/
Loaded as API: https://jadechoghari-ferret-demo.hf.space ✔
Traceback (most recent call last):
File "/Users/QQAGHN0037/PycharmProjects/FerretUI/main.py", line 13, in <module>
result = client.predict(
^^^^^^^^^^^^^^^
File "/opt/anaconda3/envs/FerretUI/lib/python3.11/site-packages/gradio_client/client.py", line 476, in predict
).result()
^^^^^^^^
File "/opt/anaconda3/envs/FerretUI/lib/python3.11/site-packages/gradio_client/client.py", line 1509, in result
return super().result(timeout=timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/anaconda3/envs/FerretUI/lib/python3.11/concurrent/futures/_base.py", line 456, in result
return self.__get_result()
^^^^^^^^^^^^^^^^^^^
File "/opt/anaconda3/envs/FerretUI/lib/python3.11/concurrent/futures/_base.py", line 401, in __get_result
raise self._exception
File "/opt/anaconda3/envs/FerretUI/lib/python3.11/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/anaconda3/envs/FerretUI/lib/python3.11/site-packages/gradio_client/client.py", line 1128, in _inner
predictions = _predict(*data)
^^^^^^^^^^^^^^^
File "/opt/anaconda3/envs/FerretUI/lib/python3.11/site-packages/gradio_client/client.py", line 1240, in _predict
raise AppError(
gradio_client.exceptions.AppError: The upstream Gradio app has raised an exception but has not enabled verbose error reporting. To enable, set show_error=True in launch().
Hmmm, since I can’t test it, you’ll have to…
You can try the same program in any of the other spaces and see if that doesn’t work, which will determine what you should try next. If it’s a problem with that space, you’ll have to contact the author or duplicate and modify it for your own use. If it’s an error in your environment, changing a setting might fix it.