delightfulrachel commited on
Commit
ea7ce73
·
verified ·
1 Parent(s): 30d2304

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -684,5 +684,12 @@ def main():
684
 
685
  app.launch()
686
 
 
 
687
  if __name__ == "__main__":
688
- main()
 
 
 
 
 
 
684
 
685
  app.launch()
686
 
687
+ import os
688
+
689
  if __name__ == "__main__":
690
+ port = int(os.environ.get("PORT", 7860))
691
+ demo.launch(
692
+ server_name="0.0.0.0",
693
+ server_port=port,
694
+ share=False
695
+ )