Spaces:
Running
Running
RUN pip install transformers | |
FROM python:3.10-slim | |
# Install system tools and git | |
RUN apt-get update && apt-get install -y git && apt-get clean | |
# Set working directory | |
WORKDIR /app | |
# Copy local files | |
COPY . . | |
# Upgrade pip and install dependencies | |
RUN pip install --no-cache-dir --upgrade pip && \ | |
pip install --no-cache-dir \ | |
git+https://github.com/huggingface/transformers.git \ | |
torch \ | |
accelerate \ | |
gradio | |
# Run the Gradio app | |
CMD ["python", "app.py"] | |