Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -204,7 +204,7 @@ class BasicAgent:
|
|
204 |
'''
|
205 |
def _transcribe_audio(self, audio_bytes: BytesIO) -> str:
|
206 |
#audio_file = BytesIO(audio_bytes)
|
207 |
-
transcription = self.client.audio.transcriptions.create(model="whisper-1", file=
|
208 |
print_coso(f"usato _transcribe_audio: {transcription}")
|
209 |
return transcription.text.strip()
|
210 |
|
|
|
204 |
'''
|
205 |
def _transcribe_audio(self, audio_bytes: BytesIO) -> str:
|
206 |
#audio_file = BytesIO(audio_bytes)
|
207 |
+
transcription = self.client.audio.transcriptions.create(model="whisper-1", file=audio_bytes)
|
208 |
print_coso(f"usato _transcribe_audio: {transcription}")
|
209 |
return transcription.text.strip()
|
210 |
|