Jivan01 commited on
Commit
27b1d5b
·
1 Parent(s): b56681c

Use task environment in root server entrypoint

Browse files
Files changed (1) hide show
  1. server/app.py +4 -2
server/app.py CHANGED
@@ -1,8 +1,10 @@
1
- from AgentBox.server.app import app, main as agentbox_main
2
 
3
 
4
  def main(host: str = "0.0.0.0", port: int = 8000):
5
- return agentbox_main(host=host, port=port)
 
 
6
 
7
 
8
  if __name__ == "__main__":
 
1
+ from src.env import app
2
 
3
 
4
  def main(host: str = "0.0.0.0", port: int = 8000):
5
+ import uvicorn
6
+
7
+ uvicorn.run(app, host=host, port=port)
8
 
9
 
10
  if __name__ == "__main__":