bokesyo commited on
Commit
60d425a
·
verified ·
1 Parent(s): 79ea466

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -248,10 +248,7 @@ Our model is capable of:
248
  images_output = gr.Gallery(label="Retrieved Pages")
249
 
250
  retrieve_button.click(retrieve_gradio, inputs=[kb_id_input, query_input, topk_input], outputs=images_output)
251
-
252
- upvote_button.click(upvote, inputs=[kb_id_input, query_input], outputs=None)
253
- downvote_button.click(downvote, inputs=[kb_id_input, query_input], outputs=None)
254
-
255
  gr.Markdown("By using this demo, you agree to share your use data with us for research purpose, to help improve user experience.")
256
 
257
  with gr.Row():
@@ -260,10 +257,13 @@ Our model is capable of:
260
  gen_model_response = gr.Textbox(label="MiniCPM-V-2.6's Answer")
261
 
262
  button.click(fn=answer_question, inputs=[images_output, query_input], outputs=gen_model_response)
263
-
264
  with gr.Row():
265
  downvote_button = gr.Button("🤣Downvote")
266
  upvote_button = gr.Button("🤗Upvote")
 
 
 
267
 
268
 
269
 
 
248
  images_output = gr.Gallery(label="Retrieved Pages")
249
 
250
  retrieve_button.click(retrieve_gradio, inputs=[kb_id_input, query_input, topk_input], outputs=images_output)
251
+
 
 
 
252
  gr.Markdown("By using this demo, you agree to share your use data with us for research purpose, to help improve user experience.")
253
 
254
  with gr.Row():
 
257
  gen_model_response = gr.Textbox(label="MiniCPM-V-2.6's Answer")
258
 
259
  button.click(fn=answer_question, inputs=[images_output, query_input], outputs=gen_model_response)
260
+
261
  with gr.Row():
262
  downvote_button = gr.Button("🤣Downvote")
263
  upvote_button = gr.Button("🤗Upvote")
264
+
265
+ upvote_button.click(upvote, inputs=[kb_id_input, query_input], outputs=None)
266
+ downvote_button.click(downvote, inputs=[kb_id_input, query_input], outputs=None)
267
 
268
 
269