| # Install requirements | |
| pip install -r requirements.txt | |
| # Run FastAPI app with uvicorn on the port Hugging Face expects | |
| # Hugging Face sets $PORT automatically | |
| uvicorn app:app --host 0.0.0.0 --port ${PORT:-7860} | |
| # Install requirements | |
| pip install -r requirements.txt | |
| # Run FastAPI app with uvicorn on the port Hugging Face expects | |
| # Hugging Face sets $PORT automatically | |
| uvicorn app:app --host 0.0.0.0 --port ${PORT:-7860} | |