CoBeDigger commited on
Commit
d3b6e7d
·
1 Parent(s): cb86053

fix: add main() function to server/app.py for openenv validation

Browse files
Files changed (1) hide show
  1. server/app.py +7 -2
server/app.py CHANGED
@@ -1,8 +1,13 @@
1
  """
2
  OpenEnv-required server entry point.
3
- Re-exports the FastAPI app from app.main for multi-mode deployment.
4
  """
5
- from app.main import app, main
 
 
 
 
 
 
6
 
7
  if __name__ == "__main__":
8
  main()
 
1
  """
2
  OpenEnv-required server entry point.
 
3
  """
4
+ import uvicorn
5
+ from app.main import app
6
+
7
+
8
+ def main():
9
+ uvicorn.run("app.main:app", host="0.0.0.0", port=8000)
10
+
11
 
12
  if __name__ == "__main__":
13
  main()