Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ import tempfile
|
|
8 |
# Load the model for speech recognition
|
9 |
model = SpeechRecognitionModel("jonatasgrosman/wav2vec2-large-xlsr-53-english")
|
10 |
|
11 |
-
translator = pipeline("text2text-generation", model="
|
12 |
tts = pipeline("text-to-speech", model="Baghdad99/hausa_voice_tts")
|
13 |
|
14 |
# Define the function to translate speech
|
|
|
8 |
# Load the model for speech recognition
|
9 |
model = SpeechRecognitionModel("jonatasgrosman/wav2vec2-large-xlsr-53-english")
|
10 |
|
11 |
+
translator = pipeline("text2text-generation", model="dammyogt/damilola-finetuned-NLP-opus-mt-en-ha")
|
12 |
tts = pipeline("text-to-speech", model="Baghdad99/hausa_voice_tts")
|
13 |
|
14 |
# Define the function to translate speech
|