GattoNero commited on
Commit
ba6e97c
·
verified ·
1 Parent(s): 08e56ad

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -129,7 +129,8 @@ class BasicAgent:
129
  print("coso Audio file detected, processing with Whisper")
130
  audio_bytes = get_or_download_audio(file_info)
131
  if audio_bytes is not None:
132
- transcription = self._transcribe_audio(audio_bytes)
 
133
  prompt_con_audio = (
134
  f"The following is the transcription of an audio file related to the question.\n"
135
  f"---\n"
 
129
  print("coso Audio file detected, processing with Whisper")
130
  audio_bytes = get_or_download_audio(file_info)
131
  if audio_bytes is not None:
132
+ audio_file = BytesIO(audio_bytes)
133
+ transcription = self._transcribe_audio(audio_file)
134
  prompt_con_audio = (
135
  f"The following is the transcription of an audio file related to the question.\n"
136
  f"---\n"