not-lain commited on
Commit
9a8fbdb
·
1 Parent(s): 52bb2a3

testing audio

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -226,7 +226,8 @@ def process_and_query(text, image, audio):
226
 
227
  if audio is not None:
228
  text = process_speech(audio)
229
- return f"{text}"
 
230
 
231
  # Now, use the text (either provided by the user or obtained from OpenAI) to query Vectara
232
  vectara_response_json = query_vectara(text)
 
226
 
227
  if audio is not None:
228
  text = process_speech(audio)
229
+ # this should print in the log the text that was extracted from the audio
230
+ print("text : ", text)
231
 
232
  # Now, use the text (either provided by the user or obtained from OpenAI) to query Vectara
233
  vectara_response_json = query_vectara(text)