Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
4a2c8ef
1
Parent(s):
5a2a7f7
Update app.py
Browse files
app.py
CHANGED
@@ -239,8 +239,8 @@ with gr.Blocks(css=css) as demo:
|
|
239 |
inputs=[prompt, negative_prompt, shuffled_items, lora_1_scale, lora_2_scale, seed],
|
240 |
outputs=[output_image, post_gen_info, last_used_seed, thumbs_up, thumbs_up_clicked, thumbs_down, thumbs_down_clicked])
|
241 |
|
242 |
-
thumbs_up.click(save_preferences, inputs=[lora_1_id, lora_1_scale, lora_2_id, lora_2_scale, prompt, output_image, gr.State("up"),
|
243 |
-
thumbs_down.click(save_preferences, inputs=[lora_1_id, lora_1_scale, lora_2_id, lora_2_scale, prompt, output_image, gr.State("down"),
|
244 |
share_button.click(None, [], [], _js=share_js)
|
245 |
|
246 |
demo.queue(concurrency_count=2)
|
|
|
239 |
inputs=[prompt, negative_prompt, shuffled_items, lora_1_scale, lora_2_scale, seed],
|
240 |
outputs=[output_image, post_gen_info, last_used_seed, thumbs_up, thumbs_up_clicked, thumbs_down, thumbs_down_clicked])
|
241 |
|
242 |
+
thumbs_up.click(save_preferences, inputs=[lora_1_id, lora_1_scale, lora_2_id, lora_2_scale, prompt, output_image, gr.State("up"), last_used_seed], outputs=[thumbs_up, thumbs_up_clicked, thumbs_down])
|
243 |
+
thumbs_down.click(save_preferences, inputs=[lora_1_id, lora_1_scale, lora_2_id, lora_2_scale, prompt, output_image, gr.State("down"), last_used_seed], outputs=[thumbs_down, thumbs_down_clicked, thumbs_up])
|
244 |
share_button.click(None, [], [], _js=share_js)
|
245 |
|
246 |
demo.queue(concurrency_count=2)
|