Haozhangcx commited on
Commit
c3ac690
1 Parent(s): a3ff1bb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -243,7 +243,7 @@ with gr.Blocks() as demo:
243
  chatbot.like(print_like_dislike, None, None)
244
  clear_btn.click(fn=clear_history, inputs=[chatbot], outputs=[chatbot], api_name="clear_all")
245
  # with gr.Column():
246
- with gr.Row(variant="panel"):
247
  gr.Examples(examples=[
248
  [{"files": [f"{cur_dir}/examples/code1.jpeg",f"{cur_dir}/examples/code2.jpeg"], "text": "Please pay attention to the movement of the object from the first image to the second image, then write a HTML code to show this movement."}],
249
  [{"files": [f"{cur_dir}/examples/shub.jpg",f"{cur_dir}/examples/shuc.jpg",f"{cur_dir}/examples/shud.jpg"], "text": "what is fun about the images?"}],
@@ -258,7 +258,7 @@ with gr.Blocks() as demo:
258
 
259
 
260
 
261
- ], inputs=[chat_input], label="Compare images: "examples_per_page=3)
262
 
263
  demo.queue()
264
  if __name__ == "__main__":
 
243
  chatbot.like(print_like_dislike, None, None)
244
  clear_btn.click(fn=clear_history, inputs=[chatbot], outputs=[chatbot], api_name="clear_all")
245
  # with gr.Column():
246
+ with gr.Row():
247
  gr.Examples(examples=[
248
  [{"files": [f"{cur_dir}/examples/code1.jpeg",f"{cur_dir}/examples/code2.jpeg"], "text": "Please pay attention to the movement of the object from the first image to the second image, then write a HTML code to show this movement."}],
249
  [{"files": [f"{cur_dir}/examples/shub.jpg",f"{cur_dir}/examples/shuc.jpg",f"{cur_dir}/examples/shud.jpg"], "text": "what is fun about the images?"}],
 
258
 
259
 
260
 
261
+ ], inputs=[chat_input], label="Compare images: ",examples_per_page=3)
262
 
263
  demo.queue()
264
  if __name__ == "__main__":