Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -95,22 +95,22 @@ with gr.Blocks() as demo:
|
|
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")
|
113 |
output_side = gr.Image(label="Side by side")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
114 |
with gr.Row():
|
115 |
gr.Markdown("""
|
116 |
### Instructions:
|
|
|
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")
|
101 |
output_side = gr.Image(label="Side by side")
|
102 |
+
|
103 |
+
gr.Examples(
|
104 |
+
examples=[
|
105 |
+
["huggingface.png", "A hat"],
|
106 |
+
["awesome.png", "A tattoo on a leg"],
|
107 |
+
["dvd_logo.png", "a flower pot"]
|
108 |
+
],
|
109 |
+
inputs=[input_image, prompt_input],
|
110 |
+
outputs=[output_image, output_side],
|
111 |
+
fn=generate,
|
112 |
+
cache_examples="lazy"
|
113 |
+
)
|
114 |
with gr.Row():
|
115 |
gr.Markdown("""
|
116 |
### Instructions:
|