ysharma HF staff commited on
Commit
5d9dc93
1 Parent(s): 5d37c0f

removed examples

Browse files
Files changed (1) hide show
  1. app_dialogue.py +13 -13
app_dialogue.py CHANGED
@@ -446,9 +446,9 @@ with gr.Blocks(title="IDEFICS", theme=gr.themes.Base()) as demo:
446
  clear_btn = gr.ClearButton([textbox, chatbot])
447
  cur_dir = os.path.dirname(os.path.abspath(__file__))
448
 
449
- def process_example(message: str) -> tuple[str, list[tuple[str, str]]]:
450
- chat = model_inference(message, [], "greedy", 3, 1.0, 0, 512, 16, 1.0, 1.0, 50, 0.95, 0.95)
451
- return '', chat
452
 
453
  #gr.Examples(
454
  # examples=[
@@ -570,16 +570,16 @@ with gr.Blocks(title="IDEFICS", theme=gr.themes.Base()) as demo:
570
  ],
571
  )
572
 
573
- gr.Examples(examples=[
574
- [f"{cur_dir}/examples/extreme_ironing.jpg", "What is unusual about this image?"],
575
- [f"{cur_dir}/examples/waterview.jpg", "What are the things I should be cautious about when I visit here?"],
576
- ["m4-dialogue/images/bear.jpg", "Describe this image"],
577
- ],
578
- inputs=[textbox],
579
- outputs=[textbox, chatbot],
580
- fn=process_example,
581
- cache_examples=True,
582
- )
583
 
584
  demo.queue()
585
  demo.launch()
 
446
  clear_btn = gr.ClearButton([textbox, chatbot])
447
  cur_dir = os.path.dirname(os.path.abspath(__file__))
448
 
449
+ #def process_example(message: str) -> tuple[str, list[tuple[str, str]]]:
450
+ # chat = model_inference(message, [], "greedy", 3, 1.0, 0, 512, 16, 1.0, 1.0, 50, 0.95, 0.95)
451
+ # return '', chat
452
 
453
  #gr.Examples(
454
  # examples=[
 
570
  ],
571
  )
572
 
573
+ #gr.Examples(examples=[
574
+ # [f"{cur_dir}/examples/extreme_ironing.jpg", "What is unusual about this image?"],
575
+ # [f"{cur_dir}/examples/waterview.jpg", "What are the things I should be cautious about when I visit here?"],
576
+ # ["m4-dialogue/images/bear.jpg", "Describe this image"],
577
+ # ],
578
+ # inputs=[textbox],
579
+ # outputs=[textbox, chatbot],
580
+ # fn=process_example,
581
+ # cache_examples=True,
582
+ #)
583
 
584
  demo.queue()
585
  demo.launch()