-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Synchronous support #2
Comments
I could try adding a synchronous API. Before the asynchronous API is done, you can try using block_on to run an asynchronous function in a synchronous context, I think. |
Hi @denizsincar29, The synchronization API is now available in |
Oh thank you so much. That's cool. Just wanted to ask if it also supports wasm? |
I think it's possible, but I may need to figure out the right feature flags for Tokio and Reqwest. If you're interested in that, here are some references you may need: However, Gradio already has an official JS client, so you may want to try it in your WASM environment if it also supports JS.
|
Hello. Is there a way to use gradio client synchronously? My whole app is synchronous so I don't want to rewrite it. Thank you.
The text was updated successfully, but these errors were encountered: