Spaces:
Running on Zero
Running on Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -185,21 +185,19 @@ FLUX.2 [dev] is a 32B model rectified flow capable of generating, editing and co
|
|
| 185 |
with gr.Column():
|
| 186 |
result = gr.Image(label="Result", show_label=False)
|
| 187 |
|
| 188 |
-
|
| 189 |
-
|
| 190 |
-
|
| 191 |
-
|
| 192 |
-
|
| 193 |
-
|
| 194 |
-
|
| 195 |
-
|
| 196 |
-
|
| 197 |
-
|
| 198 |
-
|
| 199 |
-
|
| 200 |
-
|
| 201 |
-
cache_examples="False"
|
| 202 |
-
)
|
| 203 |
|
| 204 |
input_images.upload(
|
| 205 |
fn=update_dimensions_from_image,
|
|
|
|
| 185 |
with gr.Column():
|
| 186 |
result = gr.Image(label="Result", show_label=False)
|
| 187 |
|
| 188 |
+
gr.Examples(
|
| 189 |
+
examples=examples,
|
| 190 |
+
fn=infer,
|
| 191 |
+
inputs=[prompt],
|
| 192 |
+
outputs=[result, seed]
|
| 193 |
+
)
|
| 194 |
+
|
| 195 |
+
gr.Examples(
|
| 196 |
+
examples=examples_images,
|
| 197 |
+
fn=infer,
|
| 198 |
+
inputs=[prompt, input_images],
|
| 199 |
+
outputs=[result, seed]
|
| 200 |
+
)
|
|
|
|
|
|
|
| 201 |
|
| 202 |
input_images.upload(
|
| 203 |
fn=update_dimensions_from_image,
|