GattoNero commited on
Commit
490c7c5
·
verified ·
1 Parent(s): b647e14

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -130,6 +130,7 @@ class BasicAgent:
130
  audio_bytes = get_or_download_audio(file_info)
131
  if audio_bytes is not None:
132
  audio_file = BytesIO(audio_bytes) #togli questo
 
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"
@@ -139,7 +140,7 @@ class BasicAgent:
139
  f"Now, based on this transcription, answer the following question:\n"
140
  f"{question}"
141
  )
142
- risposta = self._ask_gpt4o(prompt_con_audio)
143
  else:
144
  risposta = "Error loading audio file"
145
 
 
130
  audio_bytes = get_or_download_audio(file_info)
131
  if audio_bytes is not None:
132
  audio_file = BytesIO(audio_bytes) #togli questo
133
+ audio_file.name = file_info
134
  transcription = self._transcribe_audio(audio_file)
135
  prompt_con_audio = (
136
  f"The following is the transcription of an audio file related to the question.\n"
 
140
  f"Now, based on this transcription, answer the following question:\n"
141
  f"{question}"
142
  )
143
+ risposta = "coso no risposta"#self._ask_gpt4o(prompt_con_audio)
144
  else:
145
  risposta = "Error loading audio file"
146