Spaces:
Runtime error
Runtime error
Commit
·
bb9cfb4
1
Parent(s):
7aa699b
Update app.py
Browse files
app.py
CHANGED
@@ -145,10 +145,10 @@ def shuffle_lora(sdxl_loras, selected_lora=None):
|
|
145 |
spooky_concept = random.choice([' spooky witch', ' spooky vampire', ' spooky werewolf', ' spooky ghost', ' spooky wizard', ' spooky pumpkin'])
|
146 |
lora_repo = sdxl_loras[random_lora_index]["repo"]
|
147 |
lora_title = sdxl_loras[random_lora_index]["title"]
|
148 |
-
lora_desc = f"""#### LoRA used to edit this image:
|
149 |
-
|
|
|
150 |
by `{lora_repo.split('/')[0]}`
|
151 |
-
### halloween concept: {spooky_concept}
|
152 |
"""
|
153 |
lora_image = sdxl_loras[random_lora_index]["image"]
|
154 |
|
@@ -300,7 +300,7 @@ with gr.Blocks(css="style.css") as demo:
|
|
300 |
return True
|
301 |
|
302 |
gr.HTML("""<img style="margin: 0 auto; width: 220px;" src="https://i.imgur.com/zDcvSbg.png" alt="LEDITS SDXL LoRA Photobooth">""")
|
303 |
-
gr.HTML("""<img style="margin: 0 auto; width: 300px; margin-bottom: .5em;" src="https://i.imgur.com/hvZOBzY.png" alt="LEDITS SDXL LoRA Photobooth">""")
|
304 |
with gr.Box(elem_id="total_box"):
|
305 |
gr.HTML(
|
306 |
"""
|
@@ -324,7 +324,7 @@ with gr.Blocks(css="style.css") as demo:
|
|
324 |
sega_edited_image = gr.Image(label=f"LEDITS Edited Image", interactive=False, elem_id="output_image", height=512, width=512)
|
325 |
with gr.Column(visible=False) as buttons_area:
|
326 |
with gr.Row(elem_id="buttons_area"):
|
327 |
-
print_button = gr.HTML('<button onclick="window.print()" class="lg secondary svelte-cmf5ev" id="print" style="width: 100%;margin-bottom:0">Print 🖨️</button>')
|
328 |
run_button = gr.Button("Regenerate with the same picture 🖼️🎲", elem_id="run_again")
|
329 |
|
330 |
|
|
|
145 |
spooky_concept = random.choice([' spooky witch', ' spooky vampire', ' spooky werewolf', ' spooky ghost', ' spooky wizard', ' spooky pumpkin'])
|
146 |
lora_repo = sdxl_loras[random_lora_index]["repo"]
|
147 |
lora_title = sdxl_loras[random_lora_index]["title"]
|
148 |
+
lora_desc = f"""#### LoRA used to edit this image:
|
149 |
+
prompt: {spooky_concept}
|
150 |
+
### {lora_title}
|
151 |
by `{lora_repo.split('/')[0]}`
|
|
|
152 |
"""
|
153 |
lora_image = sdxl_loras[random_lora_index]["image"]
|
154 |
|
|
|
300 |
return True
|
301 |
|
302 |
gr.HTML("""<img style="margin: 0 auto; width: 220px;" src="https://i.imgur.com/zDcvSbg.png" alt="LEDITS SDXL LoRA Photobooth">""")
|
303 |
+
gr.HTML("""<img style="margin: 0 auto; width: 300px; margin-bottom: .5em; margin-top:-35px" src="https://i.imgur.com/hvZOBzY.png" alt="LEDITS SDXL LoRA Photobooth">""")
|
304 |
with gr.Box(elem_id="total_box"):
|
305 |
gr.HTML(
|
306 |
"""
|
|
|
324 |
sega_edited_image = gr.Image(label=f"LEDITS Edited Image", interactive=False, elem_id="output_image", height=512, width=512)
|
325 |
with gr.Column(visible=False) as buttons_area:
|
326 |
with gr.Row(elem_id="buttons_area"):
|
327 |
+
print_button = gr.HTML('<button onclick="window.print()" class="lg secondary svelte-cmf5ev" id="print" style="width: 100%;margin-bottom:0">Save PDF/Print 🖨️</button>')
|
328 |
run_button = gr.Button("Regenerate with the same picture 🖼️🎲", elem_id="run_again")
|
329 |
|
330 |
|