File size: 927 Bytes
98226af
 
8f2c23a
98226af
 
8f2c23a
98226af
 
 
 
8ce71fd
98226af
 
 
8ce71fd
 
 
5bc44c9
8ce71fd
 
af8c8f8
 
8ce71fd
 
 
98226af
 
5bc44c9
98226af
 
 
 
5bc44c9
 
 
98226af
 
8f2c23a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
FROM python:3.10-slim

# Install system dependencies
RUN apt-get update && apt-get install -y \
    ffmpeg \
    git \
    && rm -rf /var/lib/apt/lists/*

WORKDIR /app

# 1. Install the "Safe" foundation (Torch 2.0, Pyannote 3.1)
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

# 2. FORCE install WhisperX without checking dependencies
RUN pip install --no-deps git+https://github.com/m-bain/whisperx.git@v3.3.1

# 3. Manually install dependencies (PINNED)
RUN pip install --no-cache-dir \
    faster-whisper==1.1.0 \
    transformers==4.35.2 \
    tokenizers==0.15.0 \
    nltk \
    setuptools-rust

COPY app.py .

# --- CONFIGURATION UPDATES ---
ENV STREAMLIT_SERVER_PORT=7860
ENV STREAMLIT_SERVER_ADDRESS=0.0.0.0
ENV STREAMLIT_SERVER_ENABLE_XSRF_PROTECTION=false

# INCREASE UPLOAD LIMIT TO 5000 MB (5GB)
ENV STREAMLIT_SERVER_MAX_UPLOAD_SIZE=5000

EXPOSE 7860

CMD ["streamlit", "run", "app.py"]