Update app.py
Browse files
app.py
CHANGED
@@ -150,7 +150,6 @@ def chatbot_response(m,query):
|
|
150 |
|
151 |
# Invoke the model with the multimodal message
|
152 |
result = agent.invoke(prompt.format(m,k))
|
153 |
-
print(m)
|
154 |
response = result['output']
|
155 |
intermediate_steps = result.get('intermediate_steps', [])
|
156 |
|
@@ -166,7 +165,7 @@ from gradio import ChatMessage
|
|
166 |
def chatbot_interface(messages,prompt):
|
167 |
response, thought_process = chatbot_response(messages,prompt)
|
168 |
#messages.append(ChatMessage(role="user", content=prompt))
|
169 |
-
|
170 |
for x in prompt["files"]:
|
171 |
messages.append(ChatMessage(role="user", content={"path": x, "mime_type": "image/png"}))
|
172 |
if prompt["text"] is not None:
|
|
|
150 |
|
151 |
# Invoke the model with the multimodal message
|
152 |
result = agent.invoke(prompt.format(m,k))
|
|
|
153 |
response = result['output']
|
154 |
intermediate_steps = result.get('intermediate_steps', [])
|
155 |
|
|
|
165 |
def chatbot_interface(messages,prompt):
|
166 |
response, thought_process = chatbot_response(messages,prompt)
|
167 |
#messages.append(ChatMessage(role="user", content=prompt))
|
168 |
+
print("History: "+messages)
|
169 |
for x in prompt["files"]:
|
170 |
messages.append(ChatMessage(role="user", content={"path": x, "mime_type": "image/png"}))
|
171 |
if prompt["text"] is not None:
|