Spaces:
Runtime error
Runtime error
File size: 395 Bytes
2e525ca 3e00208 2e525ca 3e00208 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# Use Python as base image
FROM python:3.10
# Set working directory
WORKDIR /app
# Copy project files
COPY . /app
# Install dependencies
RUN pip install --no-cache-dir fastapi uvicorn torch torchvision torchaudio transformers sentencepiece accelerate
# Expose port 7860 for FastAPI
EXPOSE 7860
# Start the FastAPI server
CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "7860"]
|