multimodalart HF staff commited on
Commit
4e857ac
β€’
1 Parent(s): f4eb3ba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -12
app.py CHANGED
@@ -208,18 +208,19 @@ with gr.Blocks(css=css) as demo:
208
  prompt = gr.Textbox(label="Your prompt", info="Rearrange the trigger words into a coherent prompt", show_label=False, interactive=True, elem_id="prompt")
209
  run_btn = gr.Button("Run", elem_id="run_button")
210
  output_image = gr.Image(label="Output", height=355, elem_id="output_image", interactive=False)
211
- with gr.Row(visible=False, elem_id="post_gen_info") as post_gen_info:
212
- with gr.Column(min_width=10):
213
- thumbs_up = gr.Button("πŸ‘", elem_id="thumbs_up_unclicked")
214
- thumbs_up_clicked = gr.Button("πŸ‘", elem_id="thumbs_up_clicked", interactive=False, visible=False)
215
- with gr.Column(min_width=10):
216
- thumbs_down = gr.Button("πŸ‘Ž", elem_id="thumbs_down_unclicked")
217
- thumbs_down_clicked = gr.Button("πŸ‘Ž", elem_id="thumbs_down_clicked", interactive=False, visible=False)
218
- with gr.Column(min_width=10):
219
- with gr.Group(elem_id="share-btn-container") as share_group:
220
- community_icon = gr.HTML(community_icon_html)
221
- loading_icon = gr.HTML(loading_icon_html)
222
- share_button = gr.Button("Share to community", elem_id="share-btn")
 
223
  gr.Markdown('<sub><sup>Rating helps finding which LoRAs are most compatible πŸ€—, results are shared annonymously <a href="https://huggingface.co/datasets/multimodalart/lora-fusing-preferences" target="_blank">here</a></sup></sub>')
224
  with gr.Accordion("Advanced settings", open=False):
225
  with gr.Row():
 
208
  prompt = gr.Textbox(label="Your prompt", info="Rearrange the trigger words into a coherent prompt", show_label=False, interactive=True, elem_id="prompt")
209
  run_btn = gr.Button("Run", elem_id="run_button")
210
  output_image = gr.Image(label="Output", height=355, elem_id="output_image", interactive=False)
211
+ with gr.Column(visible=False, elem_id="post_gen_info") as post_gen_info:
212
+ with gr.Row():
213
+ with gr.Column(min_width=10):
214
+ thumbs_up = gr.Button("πŸ‘", elem_id="thumbs_up_unclicked")
215
+ thumbs_up_clicked = gr.Button("πŸ‘", elem_id="thumbs_up_clicked", interactive=False, visible=False)
216
+ with gr.Column(min_width=10):
217
+ thumbs_down = gr.Button("πŸ‘Ž", elem_id="thumbs_down_unclicked")
218
+ thumbs_down_clicked = gr.Button("πŸ‘Ž", elem_id="thumbs_down_clicked", interactive=False, visible=False)
219
+ with gr.Column(min_width=10):
220
+ with gr.Group(elem_id="share-btn-container") as share_group:
221
+ community_icon = gr.HTML(community_icon_html)
222
+ loading_icon = gr.HTML(loading_icon_html)
223
+ share_button = gr.Button("Share to community", elem_id="share-btn")
224
  gr.Markdown('<sub><sup>Rating helps finding which LoRAs are most compatible πŸ€—, results are shared annonymously <a href="https://huggingface.co/datasets/multimodalart/lora-fusing-preferences" target="_blank">here</a></sup></sub>')
225
  with gr.Accordion("Advanced settings", open=False):
226
  with gr.Row():