Download run.py from Shads229/Zenith-AI: direct link, hf CLI and curl.
- Browser
- Download file 552 Bytes
-
https://huggingface.co/spaces/Shads229/Zenith-AI/resolve/main/run.py
- Command line
-
hf download hf://spaces/Shads229/Zenith-AI/run.py
-
curl -L -o run.py https://huggingface.co/spaces/Shads229/Zenith-AI/resolve/main/run.py
552 Bytes
| import uvicorn | |
| import os | |
| from dotenv import load_dotenv | |
| if __name__ == "__main__": | |
| load_dotenv() | |
| # Vérification des variables d'environnement critiques | |
| if not os.getenv("GCP_SERVICE_ACCOUNT"): | |
| print("⚠️ Attention : GCP_SERVICE_ACCOUNT n'est pas configuré dans le fichier .env") | |
| print("🚀 Démarrage de Zenith AI SaaS...") | |
| print("🌍 Interface disponible sur : http://localhost:8000") | |
| # Lancement du serveur FastAPI | |
| uvicorn.run("backend.main:app", host="0.0.0.0", port=8000, reload=True) | |