Spaces:
Paused
Paused
Aryan commited on
Commit ·
fb6c35e
1
Parent(s): 539cc09
Add friendly root route
Browse files- server/app.py +4 -0
server/app.py
CHANGED
|
@@ -13,6 +13,10 @@ app = create_fastapi_app(
|
|
| 13 |
observation_cls=Observation
|
| 14 |
)
|
| 15 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
def main():
|
| 17 |
port = int(os.getenv("PORT", 7860))
|
| 18 |
uvicorn.run("server.app:app", host="0.0.0.0", port=port, log_level="info")
|
|
|
|
| 13 |
observation_cls=Observation
|
| 14 |
)
|
| 15 |
|
| 16 |
+
@app.get("/")
|
| 17 |
+
def read_root():
|
| 18 |
+
return {"status": "Running", "message": "OpenEnv Scheduling Assistant API is securely hosted and active! This environment is headless. Please direct programmatic agents to the /reset and /step POST endpoints."}
|
| 19 |
+
|
| 20 |
def main():
|
| 21 |
port = int(os.getenv("PORT", 7860))
|
| 22 |
uvicorn.run("server.app:app", host="0.0.0.0", port=port, log_level="info")
|