Spaces:
No application file
No application file
Download gmd_api.py from hadipk52/simple-apip: direct link, hf CLI and curl.
- Browser
- Download file 197 Bytes
-
https://huggingface.co/spaces/hadipk52/simple-apip/resolve/main/gmd_api.py
- Command line
-
hf download hf://spaces/hadipk52/simple-apip/gmd_api.py
-
curl -L -o gmd_api.py https://huggingface.co/spaces/hadipk52/simple-apip/resolve/main/gmd_api.py
197 Bytes
| from fastapi import FastAPI | |
| app = FastAPI(title="Simple API") | |
| def root(): | |
| return {"message": "API is running"} | |
| def health(): | |
| return {"status": "online"} |