fallenshock commited on
Commit
f2d2079
1 Parent(s): 3528c09
Files changed (1) hide show
  1. app.py +24 -23
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
- submit_button.click(
248
- fn=FlowEditRun,
249
- inputs=[
250
- image_src,
251
- model_type,
252
- T_steps,
253
- src_guidance_scale,
254
- tar_guidance_scale,
255
- n_max,
256
- src_prompt,
257
- tar_prompt,
258
- n_min,
259
- n_avg,
260
- seed,
261
- ],
262
- outputs=[
263
- image_tar[0],
264
- ],
265
- scale=3)
266
-
267
- gr.LoginButton(value="Login to HF (For SD3 and FLUX access)", scale=1)
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",