Download app.py from Seeveryou/111: direct link, hf CLI and curl.
- Browser
- Download file 260 Bytes
-
https://huggingface.co/spaces/Seeveryou/111/resolve/main/app.py
- Command line
-
hf download hf://spaces/Seeveryou/111/app.py
-
curl -L -o app.py https://huggingface.co/spaces/Seeveryou/111/resolve/main/app.py
260 Bytes
| from fastapi import FastAPI, Request | |
| app = FastAPI() | |
| async def upload_data(request: Request): | |
| data = await request.json() | |
| print("Received report:", data) # 这里可以改为存储到数据库或文件 | |
| return {"status": "ok"} |