multimodalart HF staff commited on
Commit
e9e83e2
1 Parent(s): f27dee7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -0
app.py CHANGED
@@ -91,6 +91,19 @@ with gr.Blocks() as demo:
91
  with gr.Column():
92
  output_image = gr.Image(label="Generated Application")
93
  output_side = gr.Image(label="Side by side")
 
 
 
 
 
 
 
 
 
 
 
 
 
94
  with gr.Row():
95
  gr.Markdown("""
96
  ### Instructions:
 
91
  with gr.Column():
92
  output_image = gr.Image(label="Generated Application")
93
  output_side = gr.Image(label="Side by side")
94
+
95
+ gr.Examples(
96
+ examples=[
97
+ ["huggingface.png", "A hat"],
98
+ ["awesome.png", "A tattoo on a leg"],
99
+ ["dvd_logo.png", "a flower pot"]
100
+ ],
101
+ inputs=[input_image, prompt_input],
102
+ outputs=[output_image, output_side],
103
+ fn=generate,
104
+ cache_examples="lazy"
105
+ )
106
+
107
  with gr.Row():
108
  gr.Markdown("""
109
  ### Instructions: