Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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="
|
10 |
-
tokenizer="
|
11 |
)
|
12 |
-
translator = pipeline("text2text-generation", model="Baghdad99/saad-
|
13 |
-
tts = pipeline("text-to-speech", model="Baghdad99/
|
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):
|