multimodalart HF Staff commited on
Commit
4572e5c
·
verified ·
1 Parent(s): 04419bf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -295,7 +295,7 @@ def infer(input_image, prompt, illumination_dropdown, direction_dropdown, seed=4
295
  height=input_image.size[1],
296
  generator=torch.Generator().manual_seed(seed),
297
  ).images[0]
298
- return image, seed, prompt_with_template
299
 
300
  def update_prompt_from_dropdown(illumination_option):
301
  """Update the prompt textbox based on dropdown selection"""
@@ -372,7 +372,7 @@ with gr.Blocks(css=css) as demo:
372
  )
373
 
374
  with gr.Column():
375
- result = gr.Image(label="Result", show_label=False, interactive=False)
376
  final_prompt = gr.Textbox(label="Processed prompt", info="The structure of prompt to use if you download the LoRA")
377
  # update prompt when dropdown changes
378
  illumination_dropdown.change(
 
295
  height=input_image.size[1],
296
  generator=torch.Generator().manual_seed(seed),
297
  ).images[0]
298
+ return [input_image, image], seed, prompt_with_template
299
 
300
  def update_prompt_from_dropdown(illumination_option):
301
  """Update the prompt textbox based on dropdown selection"""
 
372
  )
373
 
374
  with gr.Column():
375
+ result = gr.ImageSlider(label="Result", show_label=False, interactive=False)
376
  final_prompt = gr.Textbox(label="Processed prompt", info="The structure of prompt to use if you download the LoRA")
377
  # update prompt when dropdown changes
378
  illumination_dropdown.change(