Mike0021 commited on
Commit
a8890fb
·
verified ·
1 Parent(s): b24d1f6

Launch app when imported

Browse files
Files changed (1) hide show
  1. app.py +6 -7
app.py CHANGED
@@ -1420,10 +1420,9 @@ def build_app() -> gr.Blocks:
1420
  demo = build_app()
1421
  print("codex-traces startup: demo ready", flush=True)
1422
 
1423
- if __name__ == "__main__":
1424
- print("codex-traces startup: launching", flush=True)
1425
- demo.launch(
1426
- server_name="0.0.0.0",
1427
- server_port=7860,
1428
- show_error=True,
1429
- )
 
1420
  demo = build_app()
1421
  print("codex-traces startup: demo ready", flush=True)
1422
 
1423
+ print("codex-traces startup: launching", flush=True)
1424
+ demo.launch(
1425
+ server_name="0.0.0.0",
1426
+ server_port=7860,
1427
+ show_error=True,
1428
+ )