Baghdad99 commited on
Commit
def416c
1 Parent(s): 3431153

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -6,11 +6,11 @@ import numpy as np
6
  # Load the pipeline for speech recognition and translation
7
  pipe = pipeline(
8
  "automatic-speech-recognition",
9
- model="DrishtiSharma/whisper-large-v2-hausa",
10
- tokenizer="DrishtiSharma/whisper-large-v2-hausa"
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")
14
 
15
  # Define the function to translate speech
16
  def translate_speech(audio_data_tuple):
 
6
  # Load the pipeline for speech recognition and translation
7
  pipe = pipeline(
8
  "automatic-speech-recognition",
9
+ model="BlueRaccoon/whisper-small-en",
10
+ tokenizer="BlueRaccoon/whisper-small-en"
11
  )
12
+ translator = pipeline("text2text-generation", model="Baghdad99/saad-english-text-to-hausa-text")
13
+ tts = pipeline("text-to-speech", model="Baghdad99/hausa_voice_tts")
14
 
15
  # Define the function to translate speech
16
  def translate_speech(audio_data_tuple):