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

Is it possible to queue requests using gradio? (RuntimeError when using concurrency_count) #205

Open
aashishvasu opened this issue Oct 7, 2022 · 0 comments

Comments

@aashishvasu
Copy link

I'm trying to speed up my workflow while using img2img_gradio.py and txt2img_gradio.py and was hoping to be able to queue requests so that I can leave things unattended.

According to the gradio examples, to enable queuing, the launch function needs to be modified to

demo.queue(concurrency_count=5).launch()

However, when I modify that code, I get this error

RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu!

I'm not sure what's going wrong, because otherwise running things manually, cuda seems to be set up properly. If anyone could point me in the right direction that would be amazing!

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

1 participant