Unable to inference from space in python using API

adityaqqa
Tue, 29 Oct 2024 08:39:13 +0000

@John6666 Not working. here is the log

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().