Spaces:
Sleeping
Sleeping
add @app
Browse files
tool_use_env/server/app.py
CHANGED
|
@@ -17,7 +17,10 @@ import uvicorn
|
|
| 17 |
|
| 18 |
def main(host: str = "0.0.0.0", port: int = 8000):
|
| 19 |
uvicorn.run("tool_use_env.server.app:app", host=host, port=port)
|
| 20 |
-
|
|
|
|
|
|
|
|
|
|
| 21 |
|
| 22 |
if __name__ == "__main__":
|
| 23 |
main()
|
|
|
|
| 17 |
|
| 18 |
def main(host: str = "0.0.0.0", port: int = 8000):
|
| 19 |
uvicorn.run("tool_use_env.server.app:app", host=host, port=port)
|
| 20 |
+
|
| 21 |
+
@app.get("/")
|
| 22 |
+
def root():
|
| 23 |
+
return {"status": "running"}
|
| 24 |
|
| 25 |
if __name__ == "__main__":
|
| 26 |
main()
|