Spaces:
Sleeping
Sleeping
Download app/main.py from Salahin/random-api: direct link, hf CLI and curl.
- Browser
- Download file 267 Bytes
-
https://huggingface.co/spaces/Salahin/random-api/resolve/main/app/main.py
- Command line
-
hf download hf://spaces/Salahin/random-api/app/main.py
-
curl -L -o main.py https://huggingface.co/spaces/Salahin/random-api/resolve/main/app/main.py
267 Bytes
| from fastapi import FastAPI, Response | |
| from routers.random import router as randoom_router | |
| app = FastAPI() | |
| app.include_router(randoom_router) | |
| def get_home() -> Response: | |
| """ | |
| Return server status | |
| """ | |
| return Response("Server is running") | |