zetavg commited on
Commit
f361376
·
unverified ·
1 Parent(s): fdddf65

support gradio reload mode

Browse files
Files changed (1) hide show
  1. app.py +2 -0
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