Avnishjain commited on
Commit
a90e7fa
·
verified ·
1 Parent(s): 6888575

Upload app1.py

Browse files
Files changed (1) hide show
  1. app1.py +19 -0
app1.py ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Root OpenEnv entrypoint required by validator."""
2
+
3
+ from __future__ import annotations
4
+
5
+ import os
6
+
7
+ import uvicorn
8
+
9
+ from strategy_env.server.app import app
10
+
11
+
12
+ def main() -> None:
13
+ host = os.getenv("HOST", "0.0.0.0")
14
+ port = int(os.getenv("PORT", "8000"))
15
+ uvicorn.run("server.app:app", host=host, port=port)
16
+
17
+
18
+ if __name__ == "__main__":
19
+ main()