Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,7 +8,7 @@ import pandas as pd
|
|
| 8 |
import torch
|
| 9 |
|
| 10 |
# Load Whisper model for transcription
|
| 11 |
-
whisper_model = whisper.load_model("large")
|
| 12 |
|
| 13 |
# Load translation pipeline
|
| 14 |
translator = pipeline("translation", model="Helsinki-NLP/opus-mt-ar-en")
|
|
|
|
| 8 |
import torch
|
| 9 |
|
| 10 |
# Load Whisper model for transcription
|
| 11 |
+
whisper_model = whisper.load_model("large-v2") # Use "large-v2" if "large" doesn't work
|
| 12 |
|
| 13 |
# Load translation pipeline
|
| 14 |
translator = pipeline("translation", model="Helsinki-NLP/opus-mt-ar-en")
|