Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -271,18 +271,18 @@ with gr.Blocks(css=css) as demo:
|
|
271 |
with gr.Group():
|
272 |
with gr.Row():
|
273 |
with gr.Column():
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
)
|
282 |
-
img2img_run_button = gr.Button("Generate", scale=0)
|
283 |
init_image = gr.Image(label="Input Image", type="pil", height=512, width=512)
|
284 |
with gr.Column():
|
285 |
-
img2img_output = gr.Gallery(label="Result", elem_id="gallery", show_label=False)
|
|
|
|
|
286 |
strength = gr.Slider(label="Img2Img Strength", minimum=0.0, maximum=1.0, step=0.01, value=0.8)
|
287 |
with gr.Accordion("Advanced options", open=False):
|
288 |
with gr.Row():
|
@@ -354,5 +354,6 @@ with gr.Blocks(css=css) as demo:
|
|
354 |
api_name="img2img_run",
|
355 |
)
|
356 |
|
|
|
357 |
if __name__ == "__main__":
|
358 |
demo.queue().launch()
|
|
|
271 |
with gr.Group():
|
272 |
with gr.Row():
|
273 |
with gr.Column():
|
274 |
+
img2img_prompt = gr.Text(
|
275 |
+
label="Prompt",
|
276 |
+
show_label=False,
|
277 |
+
max_lines=1,
|
278 |
+
placeholder="Enter your prompt",
|
279 |
+
container=False,
|
280 |
+
)
|
|
|
|
|
281 |
init_image = gr.Image(label="Input Image", type="pil", height=512, width=512)
|
282 |
with gr.Column():
|
283 |
+
img2img_output = gr.Gallery(label="Result", elem_id="gallery", show_label=False, height=512, width=512)
|
284 |
+
with gr.Row():
|
285 |
+
img2img_run_button = gr.Button("Generate", scale=0)
|
286 |
strength = gr.Slider(label="Img2Img Strength", minimum=0.0, maximum=1.0, step=0.01, value=0.8)
|
287 |
with gr.Accordion("Advanced options", open=False):
|
288 |
with gr.Row():
|
|
|
354 |
api_name="img2img_run",
|
355 |
)
|
356 |
|
357 |
+
|
358 |
if __name__ == "__main__":
|
359 |
demo.queue().launch()
|