multimodalart HF Staff commited on
Commit
9a73608
·
verified ·
1 Parent(s): 73f6444

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -0
app.py CHANGED
@@ -95,6 +95,18 @@ with gr.Blocks() as demo:
95
  lines=2
96
  )
97
  generate_btn = gr.Button("Generate Application", variant="primary")
 
 
 
 
 
 
 
 
 
 
 
 
98
 
99
  with gr.Column():
100
  output_image = gr.Image(label="Generated Application")
 
95
  lines=2
96
  )
97
  generate_btn = gr.Button("Generate Application", variant="primary")
98
+
99
+ gr.Examples(
100
+ examples=[
101
+ ["huggingface.png", "A hat"],
102
+ ["awesome.png", "A tattoo on a leg"],
103
+ ["dvd_logo.png", "a flower pot"]
104
+ ],
105
+ inputs=[input_image, prompt_input],
106
+ outputs=[output_image, output_side],
107
+ fn=generate,
108
+ cache_examples="lazy"
109
+ )
110
 
111
  with gr.Column():
112
  output_image = gr.Image(label="Generated Application")