Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ from gtts import gTTS
|
|
5 |
from io import BytesIO
|
6 |
|
7 |
# Load Whisper ASR model
|
8 |
-
whisper_model = whisper.load_model("small") #
|
9 |
|
10 |
# Load translation models for Hausa-English and English-Hausa
|
11 |
model_name_he = 'Helsinki-NLP/opus-mt-ha-en' # Hausa to English
|
|
|
5 |
from io import BytesIO
|
6 |
|
7 |
# Load Whisper ASR model
|
8 |
+
whisper_model = whisper.load_model("small") # Use a smaller model
|
9 |
|
10 |
# Load translation models for Hausa-English and English-Hausa
|
11 |
model_name_he = 'Helsinki-NLP/opus-mt-ha-en' # Hausa to English
|