Update app.py
Browse files
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="
|
10 |
-
tokenizer="
|
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")
|