tuan2308 commited on
Commit
4152e96
·
verified ·
1 Parent(s): df0e349

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -375,7 +375,7 @@ def infer(input_image, prompt, illumination_dropdown, direction_dropdown, seed=4
375
  height=input_image.size[1],
376
  generator=gen,
377
  ).images[0]
378
- return image, seed, prompt_with_template
379
 
380
  def update_prompt_from_dropdown(illumination_option):
381
  """Update the prompt textbox based on dropdown selection"""
@@ -452,7 +452,7 @@ with gr.Blocks(css=css) as demo:
452
  )
453
 
454
  with gr.Column():
455
- result = gr.Image(label="Result", show_label=False)
456
  final_prompt = gr.Textbox(label="Processed prompt", info="The structure of prompt to use if you download the LoRA")
457
  # update prompt when dropdown changes
458
  illumination_dropdown.change(
 
375
  height=input_image.size[1],
376
  generator=gen,
377
  ).images[0]
378
+ return [original_input, image], seed, prompt_with_template
379
 
380
  def update_prompt_from_dropdown(illumination_option):
381
  """Update the prompt textbox based on dropdown selection"""
 
452
  )
453
 
454
  with gr.Column():
455
+ result = gr.ImageSlider(label="Result", show_label=False, interactive=False)
456
  final_prompt = gr.Textbox(label="Processed prompt", info="The structure of prompt to use if you download the LoRA")
457
  # update prompt when dropdown changes
458
  illumination_dropdown.change(