Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ translator = pipeline("text2text-generation", model="Baghdad99/saad-hausa-text-t
|
|
14 |
tts = pipeline("text-to-speech", model="Baghdad99/english_voice_tts")
|
15 |
|
16 |
def translate_speech(audio_input):
|
17 |
-
print(f"Type of audio: {type(
|
18 |
# Check if the input is a tuple (recorded audio) or a string (uploaded file)
|
19 |
if isinstance(audio_input, tuple):
|
20 |
# Extract the audio data from the tuple
|
|
|
14 |
tts = pipeline("text-to-speech", model="Baghdad99/english_voice_tts")
|
15 |
|
16 |
def translate_speech(audio_input):
|
17 |
+
print(f"Type of audio: {type(audio_input)}, Value of audio: {audio_input}") # Debug line
|
18 |
# Check if the input is a tuple (recorded audio) or a string (uploaded file)
|
19 |
if isinstance(audio_input, tuple):
|
20 |
# Extract the audio data from the tuple
|