it's end points are not working, can anyone tell me the issue.

#3
by roboticSaitama - opened

It is giving me value error again and again

Can you paste the log here?

This comment has been hidden

Can you paste the log here?

Loaded as API: https://yangheng-pyabsa.hf.space/ โœ”

ValueError Traceback (most recent call last)
in <cell line: 4>()
2
3 client = Client("https://yangheng-pyabsa.hf.space/")
----> 4 result = client.predict(
5 "Howdy!", # str representing input in 'Example:' Textbox component
6 "Laptop14", # str representing input in 'Datasets' Radio component

6 frames
/usr/local/lib/python3.10/dist-packages/gradio_client/client.py in _predict(*data)
827 result = utils.synchronize_async(self._ws_fn, data, hash_data, helper)
828 if "error" in result:
--> 829 raise ValueError(result["error"])
830 else:
831 response = requests.post(

ValueError: None

Maybe your input is invalid, which API fn do you use? e.g., fn0?
And can you paste your code here, I have no idea about the usage of API because it is not an intended feature.

from gradio_client import Client

client = Client("https://yangheng-pyabsa.hf.space/")
result = client.predict(
"Howdy!", # str representing input in 'Example:' Textbox component
"Laptop14", # str representing input in 'Datasets' Radio component
"Howdy!", # str representing input in 'parameter_10' Textbox component
fn_index=0
)
print(result)

I am using the same code, given by api to check normally it should work but it is not working, even I play with it too still.

any updates

Maybe your input is invalid, which API fn do you use? e.g., fn0?
And can you paste your code here, I have no idea about the usage of API because it is not an intended feature.

It is giving me value error again and again

Hello, did you figure out how to resolve this issue ??

@DIYAA34 it is not an issue from my side

Sign up or log in to comment