Spaces:
Sleeping
Sleeping
Download app.py from Ba7ath-Project/ahlya: direct link, hf CLI and curl.
- Browser
- Download file 272 Bytes
-
https://huggingface.co/spaces/Ba7ath-Project/ahlya/resolve/main/app.py
- Command line
-
hf download hf://spaces/Ba7ath-Project/ahlya/app.py
-
curl -L -o app.py https://huggingface.co/spaces/Ba7ath-Project/ahlya/resolve/main/app.py
272 Bytes
| import uvicorn | |
| # On importe ton instance FastAPI ('app') depuis ton fichier app/main.py | |
| from app.main import app | |
| # Hugging Face va exécuter ce fichier, qui lancera ton API sur le bon port | |
| if __name__ == "__main__": | |
| uvicorn.run(app, host="0.0.0.0", port=7860) |