Update app.py
Browse files
app.py
CHANGED
@@ -47,7 +47,8 @@ def process_input(text, file):
|
|
47 |
if file is not None:
|
48 |
image_path = save_image(file, "uploaded_images")
|
49 |
response = chat_with_model(image_path=image_path, text_query=text)
|
50 |
-
|
|
|
51 |
|
52 |
with gr.Blocks() as demo:
|
53 |
gr.Markdown("""
|
|
|
47 |
if file is not None:
|
48 |
image_path = save_image(file, "uploaded_images")
|
49 |
response = chat_with_model(image_path=image_path, text_query=text)
|
50 |
+
# Format the response for the Chatbot component
|
51 |
+
return [("bot", response)]
|
52 |
|
53 |
with gr.Blocks() as demo:
|
54 |
gr.Markdown("""
|