YUS200619 commited on
Commit
c42abce
·
verified ·
1 Parent(s): a45e30c

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -1,5 +1,7 @@
1
  from __future__ import annotations
2
 
 
 
3
  import gradio as gr
4
 
5
  from environment.env import WorkLifeFirewallEnv
@@ -54,4 +56,8 @@ demo = gr.Interface(
54
 
55
 
56
  if __name__ == "__main__":
57
- demo.launch()
 
 
 
 
 
1
  from __future__ import annotations
2
 
3
+ import os
4
+
5
  import gradio as gr
6
 
7
  from environment.env import WorkLifeFirewallEnv
 
56
 
57
 
58
  if __name__ == "__main__":
59
+ demo.launch(
60
+ server_name="0.0.0.0",
61
+ server_port=int(os.getenv("PORT", "7860")),
62
+ show_error=True,
63
+ )