Tonic commited on
Commit
252dd70
1 Parent(s): eb0e999

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -308,16 +308,16 @@ def process_and_query(input_language=None, audio_input=None, image_input=None, t
308
  combined_text += "\n\n**Image Input:**\n" + image_text
309
 
310
  # Process audio input
311
- if audio_input is not None:
312
  audio_text = process_speech(input_language, audio_input)
313
  combined_text += "\n\n**Audio Input:**\n" + audio_text
314
 
315
  # Process text input
316
- if text_input is not None and text_input.strip():
317
  combined_text += "The user asks the following to his health adviser: " + text_input
318
 
319
  # Check if combined text is empty
320
- if not combined_text.strip():
321
  return "Error: Please provide some input (text, audio, or image)."
322
 
323
  # Append the original image description in Markdown
 
308
  combined_text += "\n\n**Image Input:**\n" + image_text
309
 
310
  # Process audio input
311
+ elif audio_input is not None:
312
  audio_text = process_speech(input_language, audio_input)
313
  combined_text += "\n\n**Audio Input:**\n" + audio_text
314
 
315
  # Process text input
316
+ elif text_input is not None and text_input.strip():
317
  combined_text += "The user asks the following to his health adviser: " + text_input
318
 
319
  # Check if combined text is empty
320
+ else
321
  return "Error: Please provide some input (text, audio, or image)."
322
 
323
  # Append the original image description in Markdown