marstin commited on
Commit
3f1514e
·
1 Parent(s): 8bb7cb5

[martin-dev] no example; debug

Browse files
Files changed (1) hide show
  1. demo/launch_gradio.py +14 -14
demo/launch_gradio.py CHANGED
@@ -636,20 +636,20 @@ def create_demo() -> gr.Blocks:
636
  )
637
 
638
  # Custom interactive examples (safe for GPU Spaces)
639
- gr.Markdown("### Example Prompts (Click to Insert)")
640
- with gr.Row():
641
- gr.Button("Example 1").click(
642
- fn=lambda: ("What is in this image? Describe in one word.", None, None),
643
- outputs=[instruction_input, image1_input, image2_input]
644
- )
645
- gr.Button("Example 2").click(
646
- fn=lambda: ("Describe the main object in the picture in one word.", None, None),
647
- outputs=[instruction_input, image1_input, image2_input]
648
- )
649
- gr.Button("Example 3").click(
650
- fn=lambda: ("What color is the dominant object? Describe in one word.", None, None),
651
- outputs=[instruction_input, image1_input, image2_input]
652
- )
653
 
654
  return demo
655
 
 
636
  )
637
 
638
  # Custom interactive examples (safe for GPU Spaces)
639
+ # gr.Markdown("### Example Prompts (Click to Insert)")
640
+ # with gr.Row():
641
+ # gr.Button("Example 1").click(
642
+ # fn=lambda: ("What is in this image? Describe in one word.", None, None),
643
+ # outputs=[instruction_input, image1_input, image2_input]
644
+ # )
645
+ # gr.Button("Example 2").click(
646
+ # fn=lambda: ("Describe the main object in the picture in one word.", None, None),
647
+ # outputs=[instruction_input, image1_input, image2_input]
648
+ # )
649
+ # gr.Button("Example 3").click(
650
+ # fn=lambda: ("What color is the dominant object? Describe in one word.", None, None),
651
+ # outputs=[instruction_input, image1_input, image2_input]
652
+ # )
653
 
654
  return demo
655