Spaces:
Runtime error
Runtime error
zetavg
commited on
support gradio reload mode
Browse files
app.py
CHANGED
@@ -120,3 +120,5 @@ def read_yaml_config():
|
|
120 |
|
121 |
if __name__ == "__main__":
|
122 |
fire.Fire(main)
|
|
|
|
|
|
120 |
|
121 |
if __name__ == "__main__":
|
122 |
fire.Fire(main)
|
123 |
+
elif __name__ == "app": # app is run by `gradio`
|
124 |
+
main() # does not support command line args, must use config.yaml
|