Baghdad99 commited on
Commit
c21334d
1 Parent(s): ef4cfee

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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(audio_data_tuple)}, Value of audio: {audio_data_tuple}") # 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
 
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