File size: 518 Bytes
d0675dc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Use the official Hugging Face Spaces Gradio SDK image
FROM python:3.11

# Set the working directory
WORKDIR /code

# Install numpy first to satisfy build-time dependencies of pkuseg
RUN pip install --no-cache-dir numpy==1.26.4

# Copy the requirements file and install the rest of the dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

# Copy the application code
COPY . .

# Expose the port Gradio runs on
EXPOSE 7860

# Command to run the application
CMD ["python", "app.py"]