Update app.py
Browse files
app.py
CHANGED
|
@@ -118,8 +118,11 @@ with gr.Blocks(css=css) as block:
|
|
| 118 |
|
| 119 |
submit_btn = gr.Button("Train")
|
| 120 |
|
| 121 |
-
image_output = gr.
|
| 122 |
-
|
|
|
|
|
|
|
|
|
|
| 123 |
|
| 124 |
gr.HTML(article)
|
| 125 |
|
|
|
|
| 118 |
|
| 119 |
submit_btn = gr.Button("Train")
|
| 120 |
|
| 121 |
+
image_output = gr.Image(label="Edited image")
|
| 122 |
+
|
| 123 |
+
examples=[['a sitting dog','imagic-dog.png'], ['a photo of a bird spreading wings','imagic-bird.png']]
|
| 124 |
+
ex = gr.Examples(examples=examples, fn=infer, inputs=[prompt_input,image_init], outputs=[image_output], cache_examples=False, run_on_click=True)
|
| 125 |
+
ex.dataset.headers = [""]
|
| 126 |
|
| 127 |
gr.HTML(article)
|
| 128 |
|