Baghdad99 commited on
Commit
147483e
·
1 Parent(s): ba9d255

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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="Baghdad99/saad-english-text-to-hausa-text")
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