how to use foocus with gradio client api #2613
-
hey so i have been trying to use foocus with a gradio client api but but i always seem to get the error client = Client("link of the hosted gradio app") |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 11 replies
-
so i'm not the only one :), I'm suffering this issue for a week, and then founded, I'm not python expert so I thought this might not be that hard.
first call 40, then 41, done. client = Client("http://127.0.0.1:7865/")
result = client.predict(
...
fn_index=40
)
print(result)
result= client.predict(fn_index=41) set params according to values in UI, not in sample. |
Beta Was this translation helpful? Give feedback.
-
also see #2608 |
Beta Was this translation helpful? Give feedback.
so i'm not the only one :), I'm suffering this issue for a week, and then founded, I'm not python expert so I thought this might not be that hard.
the key api in focus 2.3.0 is
fn 40
, andfn 41
:first call 40, then 41, done.
set params according to values in UI, not in sample.
a demo code is posted here, hopes chinese is not a problem.