Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -129,8 +129,9 @@ 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 |
-
|
|
|
|
| 134 |
audio_file.name = file_info
|
| 135 |
transcription = self._transcribe_audio(audio_file)
|
| 136 |
prompt_con_audio = (
|
|
|
|
| 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 |
+
print_coso(f"in mp3 audio_bytes: {audio_bytes}")
|
| 133 |
+
audio_file = BytesIO(audio_bytes)
|
| 134 |
+
print_coso(f"in mp3 file_info: {file_file}")
|
| 135 |
audio_file.name = file_info
|
| 136 |
transcription = self._transcribe_audio(audio_file)
|
| 137 |
prompt_con_audio = (
|