ahlya / app.py
Ba7ath-Project's picture
Backend V.3 Industriel, machine de guerre d'investigation
ddd2903
raw
history blame contribute delete
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)