Souravdanyal commited on
Commit
e688c16
·
verified ·
1 Parent(s): 40ac3c8

Update server/app.py

Browse files
Files changed (1) hide show
  1. server/app.py +5 -2
server/app.py CHANGED
@@ -109,6 +109,9 @@ async def list_tasks() -> dict:
109
  }
110
 
111
 
112
- if __name__ == "__main__":
113
  import uvicorn
114
- uvicorn.run("server.app:app", host="127.0.0.1", port=7860, reload=True)
 
 
 
 
109
  }
110
 
111
 
112
+ def main():
113
  import uvicorn
114
+ uvicorn.run("server.app:app", host="0.0.0.0", port=7860, reload=False)
115
+
116
+ if __name__ == "__main__":
117
+ main()