Spaces:
Paused
Paused
Pin transformers==4.44.0, tokenizers==0.19.1 — fix WhisperProcessor import
Browse files- Dockerfile +0 -14
Dockerfile
CHANGED
|
@@ -15,20 +15,6 @@ RUN pip install --no-cache-dir \
|
|
| 15 |
COPY requirements.txt .
|
| 16 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 17 |
|
| 18 |
-
# Diagnostic: expose the real error hidden by transformers' lazy loader
|
| 19 |
-
RUN python -c "
|
| 20 |
-
import traceback, sys
|
| 21 |
-
print('=== transformers version ===')
|
| 22 |
-
import transformers; print(transformers.__version__)
|
| 23 |
-
print('=== WhisperProcessor direct import ===')
|
| 24 |
-
try:
|
| 25 |
-
from transformers.models.whisper.processing_whisper import WhisperProcessor
|
| 26 |
-
print('OK')
|
| 27 |
-
except Exception:
|
| 28 |
-
traceback.print_exc()
|
| 29 |
-
print('=== Done ===')
|
| 30 |
-
"
|
| 31 |
-
|
| 32 |
COPY . .
|
| 33 |
RUN mkdir -p /app/temp /app/model_cache
|
| 34 |
|
|
|
|
| 15 |
COPY requirements.txt .
|
| 16 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 17 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
COPY . .
|
| 19 |
RUN mkdir -p /app/temp /app/model_cache
|
| 20 |
|