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 gets stuck in loop after clicking an image or button #115

Open
Jallisto opened this issue Aug 27, 2023 · 6 comments
Open

Gradio gets stuck in loop after clicking an image or button #115

Jallisto opened this issue Aug 27, 2023 · 6 comments

Comments

@Jallisto
Copy link

Gradio gets stuck in an infinite loop after clicking on an image or when clicking a button on the panel. The image disappears immediately when doing so.

CPU and GPU activity sticks at only ~5% (10% tops) with Gradio running. So although it's continually loading not much effort seems to be put into it.

Does anyone know what's wrong or how to solve this?

The setup I'm currently using:

Windows 10
Visual Studio 2019 (Community)
Miniconda3
NVIDIA GeForce GTX 1080
CUDA Toolkit v11.7 (installed separately from Miniconda3)

Packages (incomprehensive list)
draggan 1.1.6
gradio 3.34.0
gradio-client 0.2.6
python 3.7.16
torch 1.13.1+cu117
torchaudio 0.13.1+cu117
torchvision 0.1.6

Gradio infinite loop 2023_08_27

@Zeqiang-Lai
Copy link
Collaborator

The latest code works on my computer. Your issue might be caused by the network connection issues of huggingface gradio.

@Jallisto
Copy link
Author

The latest code works on my computer. Your issue might be caused by the network connection issues of huggingface gradio.

Thanks for the suggestion!
I'll see if someone at Hugginface / Gradio knows what's wrong.

@mindy0-0
Copy link

I was wondering if you have solved the problem now?

@Jallisto
Copy link
Author

I was wondering if you have solved the problem now?

No, I haven't had a response back from the Huggingface forum and I personally don't know how to fix it.
If I know a solution, I'll post it here.

@mindy0-0
Copy link

I was wondering if you have solved the problem now?

No, I haven't had a response back from the Huggingface forum and I personally don't know how to fix it. If I know a solution, I'll post it here.

For you can have a try in the installation environment/site_packages gradio/themes/utils/fonts. Py commented in this web site, https://fonts.googleapis.com/, and then remove the browser's cache to try. I tried it and found that it could run.

@MADM1k33
Copy link

Still not fixed

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

4 participants