ysharma HF staff commited on
Commit
af60d77
·
1 Parent(s): f6e99ca

updated examples

Browse files
Files changed (1) hide show
  1. app_dialogue.py +2 -16
app_dialogue.py CHANGED
@@ -453,7 +453,7 @@ with gr.Blocks(title="IDEFICS", theme=gr.themes.Base()) as demo:
453
  gr.Examples(examples=[
454
  [f"{cur_dir}/examples/extreme_ironing.jpg", "What is unusual about this image?"],
455
  [f"{cur_dir}/examples/waterview.jpg", "What are the things I should be cautious about when I visit here?"],
456
- ["m4-dialogue/images", "Describe this image"],
457
  ],
458
  inputs=[textbox],
459
  outputs=[textbox, chatbot],
@@ -470,21 +470,7 @@ with gr.Blocks(title="IDEFICS", theme=gr.themes.Base()) as demo:
470
  # inputs = [chatbot]
471
  # )
472
 
473
-
474
- #gr.Examples(
475
- # examples=[
476
- # 'Hello there! How are you doing?',
477
- # 'Can you explain briefly to me what is the Python programming language?',
478
- # 'Explain the plot of Cinderella in a sentence.',
479
- # 'How many hours does it take a man to eat a Helicopter?',
480
- # "Write a 100-word article on 'Benefits of Open-Source in AI research'",
481
- # ],
482
- # inputs=textbox,
483
- # outputs=[textbox, chatbot],
484
- # fn=process_example,
485
- # cache_examples=True,
486
- #)
487
-
488
  def format_prompt_with_history_and_system_conditioning(current_user_prompt, history):
489
  resulting_text = SYSTEM_PROMPT
490
  for turn in history:
 
453
  gr.Examples(examples=[
454
  [f"{cur_dir}/examples/extreme_ironing.jpg", "What is unusual about this image?"],
455
  [f"{cur_dir}/examples/waterview.jpg", "What are the things I should be cautious about when I visit here?"],
456
+ ["m4-dialogue/images/bear.jpg", "Describe this image"],
457
  ],
458
  inputs=[textbox],
459
  outputs=[textbox, chatbot],
 
470
  # inputs = [chatbot]
471
  # )
472
 
473
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
474
  def format_prompt_with_history_and_system_conditioning(current_user_prompt, history):
475
  resulting_text = SYSTEM_PROMPT
476
  for turn in history: