Spaces:
Paused
Paused
| from fastapi import FastAPI | |
| import asyncio | |
| import uvicorn | |
| from bot import start_bot | |
| app = FastAPI() | |
| async def startup(): | |
| asyncio.create_task(start_bot()) | |
| async def root(): | |
| return {"status": "ok"} | |
| if __name__ == "__main__": | |
| uvicorn.run(app, host="0.0.0.0", port=7860) | |