-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Add reload to docs #1365
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
You need to run Keeping issue open until this is added to docs |
We need to add reload mode commands to docs, see here |
Template: $ gradio app.py, to run app.py in reload mode where any changes in the app.py file or Gradio library reloads the demo. |
@farukozderim @aliabd import gradio as gr
def greet(name):
return "Hello " + name + "!!"
demo1 = gr.Interface(fn=greet, inputs="text", outputs="text")
if __name__ == "__main__":
demo1.launch() error: Launching in *reload mode* on: http://127.0.0.1:7861 (Press CTRL+C to quit)
Error: Option '--reload-dir' requires an argument. config: gradio 3.0.6
ubuntu 20.04
chrome |
Thx for reporting @Zengyf-CVer, it is a known issue and should be fixed in the next version. |
Going to close as we already have a guide for reload mode here: https://gradio.app/developing_faster_with_reload_mode/ We're going to make this guide more visible in #1857 |
Describe the bug
@abidlabs
When executing
gradio app.py
, a bug was found. When the variable isdemo
, it runs normally and can be reloaded. But when the variable isdemo1
or other, the program will report an error:Is there an existing issue for this?
Reproduction
Error message:
Screenshot
No response
Logs
No response
System Info
Severity
annoying
The text was updated successfully, but these errors were encountered: