linoyts HF staff commited on
Commit
aaca27c
·
verified ·
1 Parent(s): ff483df

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -308,7 +308,7 @@ with gr.Blocks(css="style.css") as demo:
308
  gr.HTML("""<img style="margin: 0 auto; width: 180px;" src="https://i.imgur.com/zDcvSbg.png" alt="LEDITS SDXL LoRA Photobooth">""")
309
  gr.HTML("""<img style="margin: 0 auto; width: 285px;margin-bottom: .5em;margin-top:-50px;padding-left: 10px;" src="https://i.imgur.com/hvZOBzY.png" alt="LEDITS SDXL LoRA Photobooth">""")
310
  #gr.HTML("""<img class="background-printing" style="display: none" src="https://i.imgur.com/gqXjjP0.jpg" /> """, elem_id="background_printing_wrapper")
311
- with gr.Group(elem_id="total_box"):
312
  gr.HTML(
313
  """
314
  <h3>Smile, take a pic 📷✨ and it'll be inverted and edited using <a href="https://editing-images-project.static.hf.space/" target="_blank">LEDITS</a> and a random SDXL LoRA</h3>
@@ -323,7 +323,7 @@ with gr.Blocks(css="style.css") as demo:
323
  gr_picked_lora = gr.State()
324
  spooky_concept = gr.State()
325
  with gr.Row():
326
- input_image = gr.ImageEditor(label="Input Image", height=405, elem_id="input_image")
327
  with gr.Column(elem_classes="output_column") as output_column:
328
  with gr.Row(visible=False) as loaded_lora:
329
  lora_image = gr.Image(interactive=False, height=128, width=128, elem_id="lora_image", show_label=False, show_download_button=False)
 
308
  gr.HTML("""<img style="margin: 0 auto; width: 180px;" src="https://i.imgur.com/zDcvSbg.png" alt="LEDITS SDXL LoRA Photobooth">""")
309
  gr.HTML("""<img style="margin: 0 auto; width: 285px;margin-bottom: .5em;margin-top:-50px;padding-left: 10px;" src="https://i.imgur.com/hvZOBzY.png" alt="LEDITS SDXL LoRA Photobooth">""")
310
  #gr.HTML("""<img class="background-printing" style="display: none" src="https://i.imgur.com/gqXjjP0.jpg" /> """, elem_id="background_printing_wrapper")
311
+ with gr.Box(elem_id="total_box"):
312
  gr.HTML(
313
  """
314
  <h3>Smile, take a pic 📷✨ and it'll be inverted and edited using <a href="https://editing-images-project.static.hf.space/" target="_blank">LEDITS</a> and a random SDXL LoRA</h3>
 
323
  gr_picked_lora = gr.State()
324
  spooky_concept = gr.State()
325
  with gr.Row():
326
+ input_image = gr.Image(label="Input Image", height=405, source="webcam", interactive=True, elem_id="input_image")
327
  with gr.Column(elem_classes="output_column") as output_column:
328
  with gr.Row(visible=False) as loaded_lora:
329
  lora_image = gr.Image(interactive=False, height=128, width=128, elem_id="lora_image", show_label=False, show_download_button=False)