Closed Rjdrenth closed 6 months ago
Also seeing this bug - means that ChatInterface
cannot be used with reload functionality currently.
Can't see any workaround, other than not to use auto-reload.
Confirmed that this is still an issue in gradio==4.14.0
Any update on this? I'm also having this issue and because of that can't use auto-reload.
No update yet. We haven't had bandwidth to take a look at this yet, we'll try to fix when we can but it may take some time. cc @freddyaboulton for visibility
Sorry for the delay all! This will be fixed as part of #7684
Great, looking forward to it!
Describe the bug
When using a Gradio State object in an app, e.g. the hangman example, in conjunction with
gradio hangman.py
, the state object does not properly reset when a change is detected in any of the watched files and an auto-reload is triggered. When the state is used, it will result in a KeyError.Hangman source: As found at https://www.gradio.app/guides/state-in-blocks
Auto reload method: As described in https://www.gradio.app/guides/developing-faster-with-reload-mode
Have you searched existing issues? š
Reproduction
Add the following code from the hangman example to a file
hangman.py
:Then:
gradio hangman.py
and open the app and type some letters."Guess Letter"
->"Take a guess"
Screenshot
Irrelevant
Logs
System Info
Severity
I can work around it