Closed jameszhou02 closed 2 weeks ago
Same error with python version: 3.11.7
Thanks @jameszhou02 ! This should be a straightforward fix. We need to skip lines 264 to 272 in this file if the source file that changed is not a python file.
Would you like to open a PR?
On it!
Submitted a PR that's passing all tests here: https://github.com/gradio-app/gradio/pull/8194
Was running into local issues when messing w/ hot-reloading but they're really minor. Essentially changes are detected but when the hot reload occurs seems to be dynamic. Here's a video of what was happening---wasn't sure if this is the intended behavior because it seems inconsistent.
https://github.com/gradio-app/gradio/assets/61927718/9ecb1643-c264-41bb-8f73-b77cede7e23c
Hmm I think that may be an unrelated bug. Will review your PR shortly
Hi @jameszhou02 , that issue you saw where the textbox value was not updated in reload mode has been fixed in #8227
Describe the bug
When launching a gradio app with hot reloading, the initial load works but subsequent changes to CSS files and components using external CSS break the hot reload.
Have you searched existing issues? π
Reproduction
test.py
styles.css
Run command:
gradio test.py --demo-name=test_demo
Then change background-color to any other color, or add own CSS.
Screenshot
No response
Logs
Severity
I can work around it