liupf commited on
Commit
64c0032
·
verified ·
1 Parent(s): f1a0264

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -1
app.py CHANGED
@@ -314,4 +314,14 @@ initialize_predictor()
314
  demo = build_app()
315
 
316
  if __name__ == "__main__":
317
- demo.queue(default_concurrency_limit=1, max_size=16).launch(server_name="0.0.0.0", server_port=int(os.getenv("PORT", "7860")), theme=gr.themes.Soft(primary_hue="blue", neutral_hue="slate"), css=CSS, allowed_paths=[str(EXPORT_ROOT)], blocked_paths=[str(ASSETS)], show_error=False, max_file_size="1mb")
 
 
 
 
 
 
 
 
 
 
 
314
  demo = build_app()
315
 
316
  if __name__ == "__main__":
317
+ demo.queue(default_concurrency_limit=1, max_size=16).launch(
318
+ server_name="0.0.0.0",
319
+ server_port=int(os.getenv("PORT", "7860")),
320
+ ssr_mode=False,
321
+ theme=gr.themes.Soft(primary_hue="blue", neutral_hue="slate"),
322
+ css=CSS,
323
+ allowed_paths=[str(EXPORT_ROOT)],
324
+ blocked_paths=[str(ASSETS)],
325
+ show_error=False,
326
+ max_file_size="1mb",
327
+ )