Ayeeee45 commited on
Commit
36cbd97
·
verified ·
1 Parent(s): 2478eb8

Create Requirements.txt

Browse files
Files changed (1) hide show
  1. Requirements.txt +37 -0
Requirements.txt ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ WORKDIR /app
4
+
5
+ # Install system dependencies
6
+ RUN apt-get update && apt-get install -y \
7
+ git \
8
+ wget \
9
+ curl \
10
+ ffmpeg \
11
+ libgl1-mesa-glx \
12
+ libglib2.0-0 \
13
+ libsm6 \
14
+ libxext6 \
15
+ libxrender-dev \
16
+ && rm -rf /var/lib/apt/lists/*
17
+
18
+ # Copy requirements first
19
+ COPY requirements.txt .
20
+
21
+ # Install SPECIFIC versions that work together
22
+ RUN pip install --no-cache-dir \
23
+ gradio==3.41.1 \
24
+ huggingface-hub==0.19.4 \
25
+ numpy==1.24.4 \
26
+ pillow==10.1.0 \
27
+ opencv-python-headless==4.8.1.78 \
28
+ ffmpeg-python==0.2.0 \
29
+ moviepy==1.0.3 \
30
+ tqdm==4.66.1
31
+
32
+ # Copy app
33
+ COPY app.py .
34
+
35
+ EXPOSE 7860
36
+
37
+ CMD ["python", "app.py"]