Spaces:
Paused
Paused
Download main.py from tianyajum/python-agent: direct link, hf CLI and curl.
- Browser
- Download file 413 Bytes
-
https://huggingface.co/spaces/tianyajum/python-agent/resolve/main/main.py
- Command line
-
hf download hf://spaces/tianyajum/python-agent/main.py
-
curl -L -o main.py https://huggingface.co/spaces/tianyajum/python-agent/resolve/main/main.py
413 Bytes
| import uvicorn | |
| from fastapi import FastAPI | |
| from app.core.config import settings | |
| from app.core.lifecycle import lifespan | |
| from app.api.routers import chat | |
| app = FastAPI(lifespan=lifespan) | |
| app.include_router(chat.router, tags=["chat"]) | |
| async def health(): | |
| return {"status": "ok"} | |
| if __name__ == "__main__": | |
| uvicorn.run(app, host=settings.HOST, port=settings.PORT) | |