Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -7,8 +7,8 @@ from pydub import AudioSegment
|
|
7 |
# Load the pipeline for speech recognition and translation
|
8 |
pipe = pipeline(
|
9 |
"automatic-speech-recognition",
|
10 |
-
model="
|
11 |
-
tokenizer="
|
12 |
)
|
13 |
translator = pipeline("text2text-generation", model="Baghdad99/saad-hausa-text-to-english-text")
|
14 |
tts = pipeline("text-to-speech", model="Baghdad99/english_voice_tts")
|
|
|
7 |
# Load the pipeline for speech recognition and translation
|
8 |
pipe = pipeline(
|
9 |
"automatic-speech-recognition",
|
10 |
+
model="DrishtiSharma/whisper-large-v2-hausa",
|
11 |
+
tokenizer="DrishtiSharma/whisper-large-v2-hausa"
|
12 |
)
|
13 |
translator = pipeline("text2text-generation", model="Baghdad99/saad-hausa-text-to-english-text")
|
14 |
tts = pipeline("text-to-speech", model="Baghdad99/english_voice_tts")
|