File size: 637 Bytes
f3f7834
 
 
 
 
 
 
 
 
65de86a
 
 
c33d988
65de86a
f3f7834
beeffb0
f3f7834
beeffb0
f5a315f
 
f3f7834
 
f5a315f
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
"""
server/app.py — single entry point for CLM OpenEnv server.

Imports the FastAPI app built in backend/main.py and exposes it for:
  - Dockerfile: uvicorn server.app:app --host 0.0.0.0 --port 7860
  - openenv.yaml: app: server.app:app

All route logic lives in backend/main.py. This file is intentionally thin.
"""
import sys
import os

sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))

from backend.main import app  # single source of truth for the FastAPI app

__all__ = ["app"]


def main():
    import uvicorn
    uvicorn.run(app, host="0.0.0.0", port=7860)


if __name__ == "__main__":
    main()