File size: 497 Bytes
09f35fa
 
05bbf33
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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"]