Spaces:
Sleeping
Sleeping
Download quick_server.py from AIBRUH/big-proppa-live: direct link, hf CLI and curl.
- Browser
- Download file 620 Bytes
-
https://huggingface.co/spaces/AIBRUH/big-proppa-live/resolve/main/quick_server.py
- Command line
-
hf download hf://spaces/AIBRUH/big-proppa-live/quick_server.py
-
curl -L -o quick_server.py https://huggingface.co/spaces/AIBRUH/big-proppa-live/resolve/main/quick_server.py
620 Bytes
| #!/usr/bin/env python3 | |
| import sys | |
| from pathlib import Path | |
| # Add project paths | |
| project_root = Path(__file__).resolve().parent | |
| sys.path.insert(0, str(project_root)) | |
| sys.path.insert(0, str(project_root / "backend")) | |
| from fastapi import FastAPI | |
| from fastapi.responses import HTMLResponse | |
| app = FastAPI() | |
| async def root(): | |
| return HTMLResponse("<h1>HEY BIG PROPPA!</h1><p>Server is running on port 8000</p>") | |
| async def api(): | |
| return {"status": "running", "message": "Quick test server"} | |
| if __name__ == "__main__": | |
| import uvicorn | |
| uvicorn.run(app, host="0.0.0.0", port=8000) |