Spaces:
Running
Running
Update app.py
Browse files
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 |
-
|
|
|
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"
|