Spaces:
Runtime error
Runtime error
| # Use an official Python image | |
| FROM python:3.9 | |
| # Set the working directory | |
| WORKDIR /app | |
| # Copy all files from the repo to the container | |
| COPY . . | |
| # Install dependencies | |
| RUN pip install --no-cache-dir fastapi uvicorn torch torchaudio transformers | |
| # Expose FastAPI's default port | |
| EXPOSE 8000 | |
| # Start the FastAPI server | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"] | |