Spaces:
Runtime error
Runtime error
File size: 387 Bytes
7192b75 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# 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"]
|