not-lain commited on
Commit
93157f1
1 Parent(s): 9a8fbdb

debugging audio

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -218,12 +218,12 @@ def convert_to_markdown(vectara_response_json):
218
  # Main function to handle the Gradio interface logic
219
 
220
 
221
- def process_and_query(text, image, audio):
222
  try:
223
  # If an image is provided, process it with OpenAI and use the response as the text query for Vectara
224
  if image is not None:
225
  text = process_image(image)
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
 
218
  # Main function to handle the Gradio interface logic
219
 
220
 
221
+ def process_and_query(text=None, image=None, audio=None):
222
  try:
223
  # If an image is provided, process it with OpenAI and use the response as the text query for Vectara
224
  if image is not None:
225
  text = process_image(image)
226
+ print("audio_value is : ", audio)
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