Spaces:
Runtime error
Runtime error
added audio parameter in main function
Browse files
app.py
CHANGED
@@ -236,7 +236,7 @@ def convert_to_markdown(vectara_response_json):
|
|
236 |
else:
|
237 |
return "No data found in the response."
|
238 |
# Main function to handle the Gradio interface logic
|
239 |
-
def process_and_query(text, image):
|
240 |
try:
|
241 |
# If an image is provided, process it with OpenAI and use the response as the text query for Vectara
|
242 |
if image is not None:
|
|
|
236 |
else:
|
237 |
return "No data found in the response."
|
238 |
# Main function to handle the Gradio interface logic
|
239 |
+
def process_and_query(text, image,audio):
|
240 |
try:
|
241 |
# If an image is provided, process it with OpenAI and use the response as the text query for Vectara
|
242 |
if image is not None:
|