Spaces:
Paused
Paused
Update app_zero.py
Browse files- app_zero.py +4 -4
app_zero.py
CHANGED
|
@@ -220,10 +220,10 @@ with gr.Blocks(css=css) as demo:
|
|
| 220 |
</p>
|
| 221 |
|
| 222 |
""")
|
| 223 |
-
|
| 224 |
with gr.Row():
|
| 225 |
with gr.Column():
|
| 226 |
-
|
| 227 |
prompt_in = gr.Textbox(label="Prompt", value="Frog")
|
| 228 |
with gr.Accordion(label="Advanced settings", open=False):
|
| 229 |
added_prompt = gr.Textbox(label="Added Prompt", value='clean, high-resolution, 8k, best quality, masterpiece')
|
|
@@ -235,7 +235,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 235 |
seed = gr.Slider(label="Seed", minimum=-1, maximum=2147483647, step=1, randomize=True)
|
| 236 |
submit_btn = gr.Button("Submit")
|
| 237 |
with gr.Column():
|
| 238 |
-
|
| 239 |
file_output = gr.File(label="Downloadable image result")
|
| 240 |
|
| 241 |
submit_btn.click(
|
|
@@ -248,7 +248,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 248 |
classifier_free_guidance, seed
|
| 249 |
],
|
| 250 |
outputs = [
|
| 251 |
-
|
| 252 |
file_output
|
| 253 |
]
|
| 254 |
)
|
|
|
|
| 220 |
</p>
|
| 221 |
|
| 222 |
""")
|
| 223 |
+
|
| 224 |
with gr.Row():
|
| 225 |
with gr.Column():
|
| 226 |
+
input_image = gr.Image(type="filepath", sources=["upload"], value="PASD/samples/frog.png", position=0.5)
|
| 227 |
prompt_in = gr.Textbox(label="Prompt", value="Frog")
|
| 228 |
with gr.Accordion(label="Advanced settings", open=False):
|
| 229 |
added_prompt = gr.Textbox(label="Added Prompt", value='clean, high-resolution, 8k, best quality, masterpiece')
|
|
|
|
| 235 |
seed = gr.Slider(label="Seed", minimum=-1, maximum=2147483647, step=1, randomize=True)
|
| 236 |
submit_btn = gr.Button("Submit")
|
| 237 |
with gr.Column():
|
| 238 |
+
b_a_slider = ImageSlider(label="B/A result", position=0.5)
|
| 239 |
file_output = gr.File(label="Downloadable image result")
|
| 240 |
|
| 241 |
submit_btn.click(
|
|
|
|
| 248 |
classifier_free_guidance, seed
|
| 249 |
],
|
| 250 |
outputs = [
|
| 251 |
+
b_a_slider,
|
| 252 |
file_output
|
| 253 |
]
|
| 254 |
)
|