Dongxu Li commited on
Commit
243ae52
1 Parent(s): f806d99
Files changed (1) hide show
  1. app.py +13 -0
app.py CHANGED
@@ -222,6 +222,19 @@ with gr.Blocks(
222
  # with gr.Row():
223
  with gr.Column(scale=1):
224
  chat_input = gr.Textbox(lines=2, label="Chat Input")
 
 
 
 
 
 
 
 
 
 
 
 
 
225
 
226
  with gr.Row():
227
  clear_button = gr.Button(value="Clear", interactive=True)
 
222
  # with gr.Row():
223
  with gr.Column(scale=1):
224
  chat_input = gr.Textbox(lines=2, label="Chat Input")
225
+ chat_input.click(
226
+ inference_chat,
227
+ [
228
+ image_input,
229
+ chat_input,
230
+ sampling,
231
+ temperature,
232
+ len_penalty,
233
+ rep_penalty,
234
+ state,
235
+ ],
236
+ [chatbot, state],
237
+ )
238
 
239
  with gr.Row():
240
  clear_button = gr.Button(value="Clear", interactive=True)