Skip to content

Reload mode not working with indirectly referenced modules #10861

@JackismyShephard

Description

@JackismyShephard

Describe the bug

This is a duplicate of #8917, which has been closed. As explained on that issue, reload mode does not actually incorporate changes from indirectly referenced modules. It was suggested to use the --watch-dirs option to include indirectly referenced modules but that option does not seem to have an effect: I tried supplying the specific subfolder where a changed backend file is located and it did not solve the problem. Regardless of whether that option is used all changed files are tracked on the terminal but no reloading of indirectly referenced files happens:

Have you searched existing issues? 🔎

  • I have searched and found no existing issues

Reproduction

import gradio as gr

Screenshot

Image

Logs

System Info

Windows 11
Python 3.12
Gradio 5.22.0

Severity

I can work around it

Metadata

Metadata

Labels

PriorityHigh priority issuesbugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions