Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -62,18 +62,18 @@ with gr.Blocks(css=css) as demo:
|
|
62 |
gr.Markdown(f"""# FLUX.1 Kontext [dev]
|
63 |
""")
|
64 |
|
65 |
-
input_image = gr.Image(label="Upload the image for editing", type="pil")
|
66 |
with gr.Row():
|
67 |
with gr.Column():
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
|
|
77 |
with gr.Accordion("Advanced Settings", open=False):
|
78 |
|
79 |
seed = gr.Slider(
|
@@ -95,8 +95,8 @@ with gr.Blocks(css=css) as demo:
|
|
95 |
)
|
96 |
|
97 |
with gr.Column():
|
98 |
-
result = gr.Image(label="Result", show_label=False)
|
99 |
-
reuse_button = gr.Button("Reuse this image"
|
100 |
|
101 |
|
102 |
|
|
|
62 |
gr.Markdown(f"""# FLUX.1 Kontext [dev]
|
63 |
""")
|
64 |
|
|
|
65 |
with gr.Row():
|
66 |
with gr.Column():
|
67 |
+
input_image = gr.Image(label="Upload the image for editing", type="pil")
|
68 |
+
with gr.Row():
|
69 |
+
prompt = gr.Text(
|
70 |
+
label="Prompt",
|
71 |
+
show_label=False,
|
72 |
+
max_lines=1,
|
73 |
+
placeholder="Enter your prompt for editing (e.g., 'Remove glasses', 'Add a hat')",
|
74 |
+
container=False,
|
75 |
+
)
|
76 |
+
run_button = gr.Button("Run", scale=0)
|
77 |
with gr.Accordion("Advanced Settings", open=False):
|
78 |
|
79 |
seed = gr.Slider(
|
|
|
95 |
)
|
96 |
|
97 |
with gr.Column():
|
98 |
+
result = gr.Image(label="Result", show_label=False, interactive=False)
|
99 |
+
reuse_button = gr.Button("Reuse this image")
|
100 |
|
101 |
|
102 |
|