delightfulrachel commited on
Commit
a517401
·
verified ·
1 Parent(s): c37b5b2

Update app.py

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