Closed ManHinnn0509 closed 1 year ago
Same issue
Same issue
Hi all! This is expected. reload
mode cannot know the parameters passed to launch because we don't actually run your script, we just import the demo defined in that file.
This is stated in the guide
Also, when using reload mode it is recommended to place the launch in an if __name__ == "__main__"
block.
Describe the bug
Unable to launch the script with reload mode with default port, if I launch it with
gradio script.py
it shows this error:I checked but port
7860
isn't in useI can launch it and see the page if I specify the port but unable to connect to it again after reload, it shows the following message after saving the file:
Have you searched existing issues? 🔎
Reproduction
Gradio version:
3.35.2
The following code is my script:
Screenshot
No response
Logs
If I hit save file with default port it shows the following error in the console:
System Info
Severity
I can work around it