Open JackismyShephard opened 1 month ago
I can look into this but probably not until late next week or later so if you have bandwidth to propose and implement a fix @JackismyShephard , that would be much appreciated!
@freddyaboulton I probably also won't have time for it before then. My plan is to try and look into https://github.com/gradio-app/gradio/issues/8928 tomorrow. If you have not gotten around to it before next weekend I might have a look at it then, although I don't really know where to start π
Encountered the same here, worked around by mounting gradio app to fastapi & use their reload, albeit much slower than gradio's. Tried downgrading to previous versions but some other problems popped up, likely due to dependency conflicts. Looking forward to solutions to this!
@freddyaboulton Might be nice to escalate this a bit. I am not sure it is something I can solve
Describe the bug
I am using gradio for a larger project where my main
app.py
script is importing render functions from several frontend modules. These modules themselves import functionality from backend modules. When I make changes in the backend modules, those files are not reloaded by Reload Mode.Have you searched existing issues? π
Reproduction
Here is a minimal example that reproduces the error on my system:
app.py:
frontend.py:
backend.py:
I run the app in reload mode by executing
gradio ./app.py --demo-name app
.When I change the string returned by
print_success
inbackend.py
, the output message displayed in the app is not updated accordinglyScreenshot
No response
Logs
No response
System Info
Severity
I can work around it