sflindrs commited on
Commit
37dfdda
·
verified ·
1 Parent(s): 1310d0e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -62,7 +62,7 @@ with gr.Blocks() as demo:
62
 
63
  with gr.Row():
64
  image_input = gr.Image(type="numpy")
65
- chatbot_output = gr.Chatbot()
66
 
67
  text_input = gr.Textbox(placeholder="Ask a question about the image...")
68
  submit_button = gr.Button("Submit")
@@ -72,13 +72,13 @@ with gr.Blocks() as demo:
72
  submit_button.click(
73
  chatbot,
74
  inputs=[image_input, text_input, state],
75
- outputs=[chatbot_output, "messages"]
76
  )
77
 
78
  text_input.submit(
79
  chatbot,
80
  inputs=[image_input, text_input, state],
81
- outputs=[chatbot_output, "messages"]
82
  )
83
 
84
  demo.launch()
 
62
 
63
  with gr.Row():
64
  image_input = gr.Image(type="numpy")
65
+ chatbot_output = gr.Chatbot(type="messages")
66
 
67
  text_input = gr.Textbox(placeholder="Ask a question about the image...")
68
  submit_button = gr.Button("Submit")
 
72
  submit_button.click(
73
  chatbot,
74
  inputs=[image_input, text_input, state],
75
+ outputs=[chatbot_output]
76
  )
77
 
78
  text_input.submit(
79
  chatbot,
80
  inputs=[image_input, text_input, state],
81
+ outputs=[chatbot_output]
82
  )
83
 
84
  demo.launch()