Skip to content

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

Open

Description

@Jallisto

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

Activity

  1. Zeqiang-Lai commented on Aug 29, 2023

    @Zeqiang-Lai
    Collaborator

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

  2. Jallisto commented on Aug 29, 2023

    @Jallisto
    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.

  3. mindy0-0 commented on Aug 31, 2023

    @mindy0-0

    I was wondering if you have solved the problem now?

  4. Jallisto commented on Sep 11, 2023

    @Jallisto
    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.

  5. mindy0-0 commented on Sep 11, 2023

    @mindy0-0

    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.

  6. MADM1k33 commented on Mar 12, 2024

    @MADM1k33

    Still not fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions