Spaces:
Runtime error
Runtime error
Commit
·
67643a8
1
Parent(s):
861cb49
Update app.py
Browse files
app.py
CHANGED
@@ -145,9 +145,9 @@ Upload an image to edit it. You can try `Fast mode` with prompts, or `Quality mo
|
|
145 |
item_to.change(lambda choice: gr.Dropdown.update(visible=choice=="Other"), item_to, item_to_other)
|
146 |
btn_edit_quality = gr.Button("Edit Image")
|
147 |
with gr.Accordion(label="Advanced settings", open=False):
|
148 |
-
steps = gr.Slider(minimum=2, maximum=50, step=1, value=50)
|
149 |
-
xa_guidance =gr.Slider(minimum=0.0, maximum=10.0, step=0.05, value=0.1)
|
150 |
-
negative_scale = gr.Slider(minimum=0.0, maximum=20.0, step=0.1, value=5.0)
|
151 |
with gr.Column():
|
152 |
image_output = gr.Image(label="Image with edits",type="pil",shape=(512, 512))
|
153 |
|
@@ -160,7 +160,7 @@ Upload an image to edit it. You can try `Fast mode` with prompts, or `Quality mo
|
|
160 |
[os.path.join(os.path.dirname(__file__), "assets/test_images/cats/cat_1.png"), "cat", "", "dog", ""],
|
161 |
[os.path.join(os.path.dirname(__file__), "assets/test_images/cats/cat_2.png"), "cat", "", "horse", ""],
|
162 |
[os.path.join(os.path.dirname(__file__), "assets/test_images/dogs/dog_1.png"), "dog", "", "horse", ""],
|
163 |
-
[os.path.join(os.path.dirname(__file__), "assets/test_images/dogs/dog_2.png"), "dog", "", "
|
164 |
],
|
165 |
inputs=[image, item_from, item_from_other, item_to, item_to_other],
|
166 |
outputs=image_output,
|
|
|
145 |
item_to.change(lambda choice: gr.Dropdown.update(visible=choice=="Other"), item_to, item_to_other)
|
146 |
btn_edit_quality = gr.Button("Edit Image")
|
147 |
with gr.Accordion(label="Advanced settings", open=False):
|
148 |
+
steps = gr.Slider(minimum=2, maximum=50, step=1, value=50, label="Inference Steps")
|
149 |
+
xa_guidance =gr.Slider(minimum=0.0, maximum=10.0, step=0.05, value=0.1, label="xa guidance")
|
150 |
+
negative_scale = gr.Slider(minimum=0.0, maximum=20.0, step=0.1, value=5.0, label="Negative Guidance Scale")
|
151 |
with gr.Column():
|
152 |
image_output = gr.Image(label="Image with edits",type="pil",shape=(512, 512))
|
153 |
|
|
|
160 |
[os.path.join(os.path.dirname(__file__), "assets/test_images/cats/cat_1.png"), "cat", "", "dog", ""],
|
161 |
[os.path.join(os.path.dirname(__file__), "assets/test_images/cats/cat_2.png"), "cat", "", "horse", ""],
|
162 |
[os.path.join(os.path.dirname(__file__), "assets/test_images/dogs/dog_1.png"), "dog", "", "horse", ""],
|
163 |
+
[os.path.join(os.path.dirname(__file__), "assets/test_images/dogs/dog_2.png"), "dog", "", "cat", ""],
|
164 |
],
|
165 |
inputs=[image, item_from, item_from_other, item_to, item_to_other],
|
166 |
outputs=image_output,
|