Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -302,12 +302,12 @@ def process_and_query(input_language=None, audio_input=None, image_input=None, t
|
|
| 302 |
print(f"Image Input Type: {type(image_input)}, Audio Input Type: {type(audio_input)}")
|
| 303 |
|
| 304 |
# Process image input
|
| 305 |
-
if image_input is not None
|
| 306 |
image_text = process_image(image_input)
|
| 307 |
combined_text += "\n\n**Image Input:**\n" + image_text
|
| 308 |
|
| 309 |
# Process audio input
|
| 310 |
-
if audio_input is not None
|
| 311 |
audio_text = process_speech(input_language, audio_input)
|
| 312 |
combined_text += "\n\n**Audio Input:**\n" + audio_text
|
| 313 |
|
|
|
|
| 302 |
print(f"Image Input Type: {type(image_input)}, Audio Input Type: {type(audio_input)}")
|
| 303 |
|
| 304 |
# Process image input
|
| 305 |
+
if image_input is not None:
|
| 306 |
image_text = process_image(image_input)
|
| 307 |
combined_text += "\n\n**Image Input:**\n" + image_text
|
| 308 |
|
| 309 |
# Process audio input
|
| 310 |
+
if audio_input is not None:
|
| 311 |
audio_text = process_speech(input_language, audio_input)
|
| 312 |
combined_text += "\n\n**Audio Input:**\n" + audio_text
|
| 313 |
|