Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
a33222d
1
Parent(s):
9be53ec
Update app.py
Browse files
app.py
CHANGED
@@ -35,6 +35,7 @@ print("Before Gradio Interface")
|
|
35 |
title = gr.HTML(
|
36 |
"""<h1>LoRA the Explorer</h1>""",
|
37 |
elem_id="title",
|
|
|
38 |
)
|
39 |
|
40 |
gallery = gr.Gallery(
|
@@ -43,16 +44,17 @@ gallery = gr.Gallery(
|
|
43 |
allow_preview=False,
|
44 |
columns=3,
|
45 |
elem_id="gallery",
|
46 |
-
show_share_button=False
|
|
|
47 |
)
|
48 |
|
49 |
-
prompt = gr.Textbox(label="Prompt", show_label=False, lines=1, max_lines=1, placeholder="Type a prompt after selecting a LoRA", elem_id="prompt")
|
50 |
|
51 |
-
advanced_options = gr.Accordion("Advanced options", open=False)
|
52 |
|
53 |
-
weight = gr.Slider(0, 10, value=1, step=0.1, label="LoRA weight")
|
54 |
|
55 |
-
result = gr.Image(interactive=False, label="Generated Image", elem_id="result-image")
|
56 |
|
57 |
gr.Interface(
|
58 |
fn=run_lora,
|
|
|
35 |
title = gr.HTML(
|
36 |
"""<h1>LoRA the Explorer</h1>""",
|
37 |
elem_id="title",
|
38 |
+
name="title" # Add the name attribute
|
39 |
)
|
40 |
|
41 |
gallery = gr.Gallery(
|
|
|
44 |
allow_preview=False,
|
45 |
columns=3,
|
46 |
elem_id="gallery",
|
47 |
+
show_share_button=False,
|
48 |
+
name="gallery" # Add the name attribute
|
49 |
)
|
50 |
|
51 |
+
prompt = gr.Textbox(label="Prompt", show_label=False, lines=1, max_lines=1, placeholder="Type a prompt after selecting a LoRA", elem_id="prompt", name="prompt") # Add the name attribute
|
52 |
|
53 |
+
advanced_options = gr.Accordion("Advanced options", open=False, name="advanced_options") # Add the name attribute
|
54 |
|
55 |
+
weight = gr.Slider(0, 10, value=1, step=0.1, label="LoRA weight", name="weight") # Add the name attribute
|
56 |
|
57 |
+
result = gr.Image(interactive=False, label="Generated Image", elem_id="result-image", name="result") # Add the name attribute
|
58 |
|
59 |
gr.Interface(
|
60 |
fn=run_lora,
|