Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -74,7 +74,7 @@ def infer(input_image, prompt, seed=42, randomize_seed=False, guidance_scale=2.5
|
|
74 |
num_inference_steps=steps,
|
75 |
generator=torch.Generator().manual_seed(seed),
|
76 |
).images[0]
|
77 |
-
return image, seed, gr.Button(visible=True)
|
78 |
|
79 |
@spaces.GPU
|
80 |
def infer_example(input_image, prompt):
|
@@ -135,7 +135,7 @@ Image editing and manipulation model guidance-distilled from FLUX.1 Kontext [pro
|
|
135 |
)
|
136 |
|
137 |
with gr.Column():
|
138 |
-
result = gr.
|
139 |
reuse_button = gr.Button("Reuse this image", visible=False)
|
140 |
|
141 |
|
|
|
74 |
num_inference_steps=steps,
|
75 |
generator=torch.Generator().manual_seed(seed),
|
76 |
).images[0]
|
77 |
+
return (input_image, image), seed, gr.Button(visible=True)
|
78 |
|
79 |
@spaces.GPU
|
80 |
def infer_example(input_image, prompt):
|
|
|
135 |
)
|
136 |
|
137 |
with gr.Column():
|
138 |
+
result = gr.ImageSlider(label="Result", show_label=False, interactive=False)
|
139 |
reuse_button = gr.Button("Reuse this image", visible=False)
|
140 |
|
141 |
|