Spaces:
Runtime error
Runtime error
Update app.py
Browse files307 unmodified lines308309310311312313314315316317318319320321322323307 unmodified linescombined_text += "\n\n**Image Input:**\n" + image_text# Process audio inputif audio_input is not None:audio_text = process_speech(input_language, audio_input)combined_text += "\n\n**Audio Input:**\n" + audio_text# Process text inputif text_input is not None and text_input.strip():combined_text += "The user asks the following to his health adviser: " + text_input# Check if combined text is emptyif not combined_text.strip():return "Error: Please provide some input (text, audio, or image)."# Append the original image description in Markdown307 unmodified lines308309310311312313314315316317318319320321322323307 unmodified linescombined_text += "\n\n**Image Input:**\n" + image_text# Process audio inputelif audio_input is not None:audio_text = process_speech(input_language, audio_input)combined_text += "\n\n**Audio Input:**\n" + audio_text# Process text inputelif text_input is not None and text_input.strip():combined_text += "The user asks the following to his health adviser: " + text_input# Check if combined text is emptyelsereturn "Error: Please provide some input (text, audio, or image)."# Append the original image description in Markdown
app.py+3-3