ford442 commited on
Commit
7f2f8a9
·
verified ·
1 Parent(s): ffdb810

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -1
app.py CHANGED
@@ -117,6 +117,7 @@ def infer(
117
  height,
118
  guidance_scale,
119
  num_inference_steps,
 
120
  latent_file, # Add latents file input
121
  progress=gr.Progress(track_tqdm=True),
122
  ):
@@ -316,7 +317,15 @@ with gr.Blocks(theme=gr.themes.Origin(),css=css) as demo:
316
  value="A captivating Christmas scene.",
317
  container=False,
318
  )
319
- run_button = gr.Button("Run", scale=0, variant="primary")
 
 
 
 
 
 
 
 
320
  result = gr.Image(label="Result", show_label=False)
321
  with gr.Accordion("Advanced Settings", open=False):
322
  latent_file = gr.File(label="Latents File (optional)") # Add latents file input
@@ -379,6 +388,7 @@ with gr.Blocks(theme=gr.themes.Origin(),css=css) as demo:
379
  height,
380
  guidance_scale,
381
  num_inference_steps,
 
382
  latent_file, # Add latent_file to the inputs
383
  ],
384
  outputs=[result, seed, expanded_prompt_output],
 
117
  height,
118
  guidance_scale,
119
  num_inference_steps,
120
+ expanded,
121
  latent_file, # Add latents file input
122
  progress=gr.Progress(track_tqdm=True),
123
  ):
 
317
  value="A captivating Christmas scene.",
318
  container=False,
319
  )
320
+ options = [True, False]
321
+ expanded = gr.Radio(
322
+ show_label=True,
323
+ container=True,
324
+ interactive=True,
325
+ choices=options,
326
+ value=True,
327
+ label="Use expanded prompt: ",
328
+ ) run_button = gr.Button("Run", scale=0, variant="primary")
329
  result = gr.Image(label="Result", show_label=False)
330
  with gr.Accordion("Advanced Settings", open=False):
331
  latent_file = gr.File(label="Latents File (optional)") # Add latents file input
 
388
  height,
389
  guidance_scale,
390
  num_inference_steps,
391
+ expanded,
392
  latent_file, # Add latent_file to the inputs
393
  ],
394
  outputs=[result, seed, expanded_prompt_output],