Skip to content
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

Gradio API: cannot schedule new futures after shutdown #131

Open
dtardieu opened this issue Oct 25, 2024 · 2 comments
Open

Gradio API: cannot schedule new futures after shutdown #131

dtardieu opened this issue Oct 25, 2024 · 2 comments

Comments

@dtardieu
Copy link

I am trying to use the Gradio API in speechtospeech.
I coded the interface for a new "language model" that is in that case the gradio API.
Everything works fine until I use client.predict inside the process function. Then I get "RuntimeError: cannot schedule new futures after shutdown"

the predict function works inside the warmup function.

Any idea what is happening ?

@andimarafioti
Copy link
Member

No clue, could you add more details? We also struggled to get this to work with Gradio :(

@dtardieu
Copy link
Author

Thank you for your answer ! unfortunately I had to quickly find a workaround and I threw away the code.
But it was really only calling the gradio api python client inside client.predict that made everything crash.

Anyway thank you very much for that project !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants