-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hot reloads break when loading external CSS #8192
Comments
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: #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. Screen.Recording.2024-05-01.at.7.46.20.PM.mov |
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
The text was updated successfully, but these errors were encountered: