Spaces:
Running
on
Zero
Running
on
Zero
fallenshock
commited on
Commit
·
f2d2079
1
Parent(s):
3528c09
oauth2
Browse files
app.py
CHANGED
|
@@ -233,7 +233,9 @@ with gr.Blocks() as demo:
|
|
| 233 |
tar_guidance_scale = gr.Slider(minimum=1.0, maximum=30.0, value=13.5, label="tar_guidance_scale")
|
| 234 |
|
| 235 |
with gr.Row():
|
| 236 |
-
submit_button = gr.Button("Run FlowEdit", variant="primary")
|
|
|
|
|
|
|
| 237 |
|
| 238 |
with gr.Accordion(label="Advanced Settings", open=False):
|
| 239 |
# additional inputs
|
|
@@ -242,29 +244,28 @@ with gr.Blocks() as demo:
|
|
| 242 |
seed = gr.Number(value=42, label="seed")
|
| 243 |
|
| 244 |
|
| 245 |
-
with gr.Row():
|
| 246 |
|
| 247 |
-
|
| 248 |
-
|
| 249 |
-
|
| 250 |
-
|
| 251 |
-
|
| 252 |
-
|
| 253 |
-
|
| 254 |
-
|
| 255 |
-
|
| 256 |
-
|
| 257 |
-
|
| 258 |
-
|
| 259 |
-
|
| 260 |
-
|
| 261 |
-
|
| 262 |
-
|
| 263 |
-
|
| 264 |
-
|
| 265 |
-
|
| 266 |
-
|
| 267 |
-
|
| 268 |
|
| 269 |
gr.Examples(
|
| 270 |
label="Examples",
|
|
|
|
| 233 |
tar_guidance_scale = gr.Slider(minimum=1.0, maximum=30.0, value=13.5, label="tar_guidance_scale")
|
| 234 |
|
| 235 |
with gr.Row():
|
| 236 |
+
submit_button = gr.Button("Run FlowEdit", variant="primary",scale=3)
|
| 237 |
+
gr.LoginButton(value="Login to HF (For SD3 and FLUX access)", scale=1)
|
| 238 |
+
|
| 239 |
|
| 240 |
with gr.Accordion(label="Advanced Settings", open=False):
|
| 241 |
# additional inputs
|
|
|
|
| 244 |
seed = gr.Number(value=42, label="seed")
|
| 245 |
|
| 246 |
|
|
|
|
| 247 |
|
| 248 |
+
|
| 249 |
+
submit_button.click(
|
| 250 |
+
fn=FlowEditRun,
|
| 251 |
+
inputs=[
|
| 252 |
+
image_src,
|
| 253 |
+
model_type,
|
| 254 |
+
T_steps,
|
| 255 |
+
src_guidance_scale,
|
| 256 |
+
tar_guidance_scale,
|
| 257 |
+
n_max,
|
| 258 |
+
src_prompt,
|
| 259 |
+
tar_prompt,
|
| 260 |
+
n_min,
|
| 261 |
+
n_avg,
|
| 262 |
+
seed,
|
| 263 |
+
],
|
| 264 |
+
outputs=[
|
| 265 |
+
image_tar[0],
|
| 266 |
+
],
|
| 267 |
+
)
|
| 268 |
+
|
| 269 |
|
| 270 |
gr.Examples(
|
| 271 |
label="Examples",
|