littlebird13 commited on
Commit
cfa54d3
·
verified ·
1 Parent(s): 8405117

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -269,11 +269,11 @@ signal.signal(signal.SIGTERM, handle_exit)
269
  if __name__ == "__main__":
270
  import os
271
 
272
- if (mode := os.getenv("MODE")) == "UI":
273
- stream.ui.launch(server_port=7860)
274
- elif mode == "PHONE":
275
- stream.fastphone(host="0.0.0.0", port=7860)
276
- else:
277
- import uvicorn
278
-
279
- uvicorn.run(app, host="0.0.0.0", port=7860)
 
269
  if __name__ == "__main__":
270
  import os
271
 
272
+ # if (mode := os.getenv("MODE")) == "UI":
273
+ stream.ui.launch(server_port=7860)
274
+ # elif mode == "PHONE":
275
+ #stream.fastphone(host="0.0.0.0", port=7860)
276
+ # else:
277
+ # import uvicorn
278
+
279
+ # uvicorn.run(app, host="0.0.0.0", port=7860)