Spaces:
Runtime error
Runtime error
Commit
·
b6fa736
1
Parent(s):
d92fc15
Update app.py
Browse files
app.py
CHANGED
|
@@ -112,14 +112,13 @@ with gr.Blocks(css=css) as demo:
|
|
| 112 |
lora_2_prompt = gr.Markdown(visible=False)
|
| 113 |
with gr.Column(min_width=10, scale=1, elem_classes="plus_column"):
|
| 114 |
equal = gr.HTML("=", elem_classes="plus_button")
|
| 115 |
-
shuffle_button = gr.Button("Reshuffle!", visible=False)
|
| 116 |
with gr.Column(min_width=10, scale=14):
|
| 117 |
with gr.Box():
|
| 118 |
with gr.Row():
|
| 119 |
prompt = gr.Textbox(label="Your prompt", show_label=False, interactive=True, elem_id="prompt")
|
| 120 |
run_btn = gr.Button("Run", elem_id="run_button")
|
| 121 |
output_image = gr.Image(label="Output", height=355)
|
| 122 |
-
|
| 123 |
|
| 124 |
|
| 125 |
|
|
@@ -128,7 +127,8 @@ with gr.Blocks(css=css) as demo:
|
|
| 128 |
with gr.Row():
|
| 129 |
lora_1_scale = gr.Slider(label="LoRA 1 Scale", minimum=0, maximum=1, step=0.1, value=0.7)
|
| 130 |
lora_2_scale = gr.Slider(label="LoRa 2 Scale", minimum=0, maximum=1, step=0.1, value=0.7)
|
| 131 |
-
|
|
|
|
| 132 |
demo.load(shuffle_images, inputs=[], outputs=[lora_1, lora_1_prompt, lora_2, lora_2_prompt, prompt, shuffled_items], queue=False, show_progress="hidden")
|
| 133 |
shuffle_button.click(shuffle_images, outputs=[lora_1, lora_1_prompt, lora_2, lora_2_prompt, prompt, shuffled_items], queue=False, show_progress="hidden")
|
| 134 |
|
|
|
|
| 112 |
lora_2_prompt = gr.Markdown(visible=False)
|
| 113 |
with gr.Column(min_width=10, scale=1, elem_classes="plus_column"):
|
| 114 |
equal = gr.HTML("=", elem_classes="plus_button")
|
|
|
|
| 115 |
with gr.Column(min_width=10, scale=14):
|
| 116 |
with gr.Box():
|
| 117 |
with gr.Row():
|
| 118 |
prompt = gr.Textbox(label="Your prompt", show_label=False, interactive=True, elem_id="prompt")
|
| 119 |
run_btn = gr.Button("Run", elem_id="run_button")
|
| 120 |
output_image = gr.Image(label="Output", height=355)
|
| 121 |
+
|
| 122 |
|
| 123 |
|
| 124 |
|
|
|
|
| 127 |
with gr.Row():
|
| 128 |
lora_1_scale = gr.Slider(label="LoRA 1 Scale", minimum=0, maximum=1, step=0.1, value=0.7)
|
| 129 |
lora_2_scale = gr.Slider(label="LoRa 2 Scale", minimum=0, maximum=1, step=0.1, value=0.7)
|
| 130 |
+
shuffle_button = gr.Button("Reshuffle!")
|
| 131 |
+
|
| 132 |
demo.load(shuffle_images, inputs=[], outputs=[lora_1, lora_1_prompt, lora_2, lora_2_prompt, prompt, shuffled_items], queue=False, show_progress="hidden")
|
| 133 |
shuffle_button.click(shuffle_images, outputs=[lora_1, lora_1_prompt, lora_2, lora_2_prompt, prompt, shuffled_items], queue=False, show_progress="hidden")
|
| 134 |
|