Baghdad99 commited on
Commit
1826b6a
1 Parent(s): 8c23bfa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -6,8 +6,8 @@ from pydub import AudioSegment
6
  # Load the pipeline for speech recognition and translation
7
  pipe = pipeline(
8
  "automatic-speech-recognition",
9
- model="Baghdad99/saad-speech-recognition-hausa-audio-to-text",
10
- tokenizer="Baghdad99/saad-speech-recognition-hausa-audio-to-text"
11
  )
12
  translator = pipeline("text2text-generation", model="Baghdad99/saad-hausa-text-to-english-text")
13
  tts = pipeline("text-to-speech", model="Baghdad99/english_voice_tts")
 
6
  # Load the pipeline for speech recognition and translation
7
  pipe = pipeline(
8
  "automatic-speech-recognition",
9
+ model="Akashpb13/Hausa_xlsr",
10
+ tokenizer="Akashpb13/Hausa_xlsr"
11
  )
12
  translator = pipeline("text2text-generation", model="Baghdad99/saad-hausa-text-to-english-text")
13
  tts = pipeline("text-to-speech", model="Baghdad99/english_voice_tts")