Update app.py
Browse files
app.py
CHANGED
@@ -50,10 +50,10 @@ def chatbot(image, text, history):
|
|
50 |
return history + [("Please upload an image first.", None)]
|
51 |
|
52 |
response = process_image_and_text(image, text)
|
53 |
-
pretty_response = pprint.pp(response)
|
54 |
|
55 |
history.append({"role": "user", "content": text})
|
56 |
-
history.append({"role": "assistant", "content":
|
57 |
return history
|
58 |
|
59 |
# Define the Gradio interface
|
|
|
50 |
return history + [("Please upload an image first.", None)]
|
51 |
|
52 |
response = process_image_and_text(image, text)
|
53 |
+
# pretty_response = pprint.pp(response)
|
54 |
|
55 |
history.append({"role": "user", "content": text})
|
56 |
+
history.append({"role": "assistant", "content": response})
|
57 |
return history
|
58 |
|
59 |
# Define the Gradio interface
|