Spaces:
Paused
Paused
Commit
•
6397acd
1
Parent(s):
1852437
share button above
Browse files
app.py
CHANGED
@@ -186,16 +186,16 @@ with gr.Blocks(css="custom.css") as demo:
|
|
186 |
visible=True,
|
187 |
elem_id="selected_lora",
|
188 |
)
|
|
|
|
|
|
|
|
|
189 |
with gr.Row():
|
190 |
prompt = gr.Textbox(label="Prompt", show_label=False, lines=1, max_lines=1, placeholder="Type a prompt after selecting a LoRA", elem_id="prompt")
|
191 |
button = gr.Button("Run", elem_id="run_button")
|
192 |
result = gr.Image(
|
193 |
interactive=False, label="Generated Image", elem_id="result-image"
|
194 |
)
|
195 |
-
with gr.Group(elem_id="share-btn-container", visible=False) as share_group:
|
196 |
-
community_icon = gr.HTML(community_icon_html)
|
197 |
-
loading_icon = gr.HTML(loading_icon_html)
|
198 |
-
share_button = gr.Button("Share to community", elem_id="share-btn")
|
199 |
with gr.Accordion("Advanced options", open=False):
|
200 |
negative = gr.Textbox(label="Negative Prompt")
|
201 |
weight = gr.Slider(0, 10, value=1, step=0.1, label="LoRA weight")
|
|
|
186 |
visible=True,
|
187 |
elem_id="selected_lora",
|
188 |
)
|
189 |
+
with gr.Group(elem_id="share-btn-container", visible=False) as share_group:
|
190 |
+
community_icon = gr.HTML(community_icon_html)
|
191 |
+
loading_icon = gr.HTML(loading_icon_html)
|
192 |
+
share_button = gr.Button("Share to community", elem_id="share-btn")
|
193 |
with gr.Row():
|
194 |
prompt = gr.Textbox(label="Prompt", show_label=False, lines=1, max_lines=1, placeholder="Type a prompt after selecting a LoRA", elem_id="prompt")
|
195 |
button = gr.Button("Run", elem_id="run_button")
|
196 |
result = gr.Image(
|
197 |
interactive=False, label="Generated Image", elem_id="result-image"
|
198 |
)
|
|
|
|
|
|
|
|
|
199 |
with gr.Accordion("Advanced options", open=False):
|
200 |
negative = gr.Textbox(label="Negative Prompt")
|
201 |
weight = gr.Slider(0, 10, value=1, step=0.1, label="LoRA weight")
|