Spaces:
Runtime error
Runtime error
| FROM tiangolo/uvicorn-gunicorn-fastapi:python3.9 | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Pré-télécharger tout modèle lourd ici si besoin | |
| COPY . . | |
| # Expose port 7860 (required by Hugging Face Spaces) | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "app.api_server:app", "--host", "0.0.0.0", "--port", "7860"] | |