Need for a proper API Documentation.

#7
by Dhalavai - opened

Before last week I was able to use the api of this qwen vl model in your space easily but due to the update I can't use it.Here is the following code and error.
result = client.predict(
image_url,
prompt,
choice,
api_name="/predict"
)
Error-
/usr/local/lib/python3.10/dist-packages/gradio_client/client.py in _infer_fn_index(self, api_name, fn_index)
566 if not api_name.startswith("/"):
567 error_message += " Did you mean to use a leading slash?"
--> 568 raise ValueError(error_message)
569 elif fn_index is not None:
570 inferred_fn_index = fn_index

ValueError: Cannot find a function with api_name: /predict.

So,Please give proper api documentation. I also use the api documentation given by gradio but it also didn't work.

Thanks For your work of making this space it is very useful.

I really dont know what could be the reason. Sorry, i cant help.

Sign up or log in to comment