Spaces:
Paused
Paused
Add diagnostic RUN to expose real WhisperProcessor import error
Browse files- Dockerfile +14 -0
Dockerfile
CHANGED
|
@@ -15,6 +15,20 @@ RUN pip install --no-cache-dir \
|
|
| 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 |
|
|
|
|
| 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 |
|