curry tang commited on
Commit
193c02b
·
1 Parent(s): 3a24cd0
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -40,7 +40,7 @@ def predict(message, history, chat):
40
 
41
  if history_len == 0:
42
  history_messages.append(SystemMessage(content=web_prompt))
43
- history_messages.append(HumanMessage(content=message))
44
  # else:
45
  # file = message.files[0]
46
  # with Image.open(file.path) as img:
@@ -197,6 +197,7 @@ with gr.Blocks() as app:
197
  with gr.Column(scale=2, min_width=600):
198
  chatbot = gr.ChatInterface(
199
  predict,
 
200
  chatbot=gr.Chatbot(elem_id="chatbot", height=600, show_share_button=False),
201
  additional_inputs=[chat_engine],
202
  )
 
40
 
41
  if history_len == 0:
42
  history_messages.append(SystemMessage(content=web_prompt))
43
+ history_messages.append(HumanMessage(content=message.text))
44
  # else:
45
  # file = message.files[0]
46
  # with Image.open(file.path) as img:
 
197
  with gr.Column(scale=2, min_width=600):
198
  chatbot = gr.ChatInterface(
199
  predict,
200
+ multimodal=True,
201
  chatbot=gr.Chatbot(elem_id="chatbot", height=600, show_share_button=False),
202
  additional_inputs=[chat_engine],
203
  )