sg123321 commited on
Commit
4260269
·
verified ·
1 Parent(s): a46f402

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -9
Dockerfile CHANGED
@@ -1,10 +1,8 @@
1
- # Python 3.10 (Slim Version)
2
  FROM python:3.10-slim
3
 
4
- # Working Directory
5
  WORKDIR /app
6
 
7
- # 🛠️ FIXED: Added 'build-essential' and 'python3-dev' for GCC Compiler
8
  RUN apt-get update && apt-get install -y \
9
  git \
10
  ffmpeg \
@@ -13,20 +11,20 @@ RUN apt-get update && apt-get install -y \
13
  python3-dev \
14
  && rm -rf /var/lib/apt/lists/*
15
 
16
- # 1. PyTorch Install (GPU Support)
17
  RUN pip install --no-cache-dir torch torchaudio --index-url https://download.pytorch.org/whl/cu118
18
 
19
- # 2. XTTS Install (Ab ye fail nahi hoga)
20
  RUN pip install --no-cache-dir git+https://github.com/coqui-ai/TTS.git
21
 
22
- # 3. Other Requirements
 
 
 
23
  RUN pip install --no-cache-dir gradio spaces numpy==1.26.4
24
 
25
- # Copy Files
26
  COPY . .
27
 
28
- # Port Expose
29
  EXPOSE 7860
30
 
31
- # Run App
32
  CMD ["python", "app.py"]
 
 
1
  FROM python:3.10-slim
2
 
 
3
  WORKDIR /app
4
 
5
+ # 1. System Tools (GCC Fix included)
6
  RUN apt-get update && apt-get install -y \
7
  git \
8
  ffmpeg \
 
11
  python3-dev \
12
  && rm -rf /var/lib/apt/lists/*
13
 
14
+ # 2. PyTorch (GPU Ready)
15
  RUN pip install --no-cache-dir torch torchaudio --index-url https://download.pytorch.org/whl/cu118
16
 
17
+ # 3. Install XTTS
18
  RUN pip install --no-cache-dir git+https://github.com/coqui-ai/TTS.git
19
 
20
+ # 🛠️ ERROR FIX: Transformers ko downgrade kar rahe hain taaki 'BeamSearchScorer' mil jaye
21
+ RUN pip install --no-cache-dir transformers==4.42.4
22
+
23
+ # 4. Final Requirements
24
  RUN pip install --no-cache-dir gradio spaces numpy==1.26.4
25
 
 
26
  COPY . .
27
 
 
28
  EXPOSE 7860
29
 
 
30
  CMD ["python", "app.py"]