Spaces:
Runtime error
Runtime error
artificialguybr
commited on
Commit
•
a200bb2
1
Parent(s):
c49f67b
Update app.py
Browse files
app.py
CHANGED
@@ -50,14 +50,16 @@ with gr.Blocks(css="custom.css") as app:
|
|
50 |
)
|
51 |
with gr.Column():
|
52 |
prompt_title = gr.Markdown("### Click on a LoRA in the gallery to select it")
|
53 |
-
|
|
|
|
|
54 |
result = gr.Image(interactive=False, label="Generated Image")
|
55 |
|
56 |
gallery.select(
|
57 |
update_selection,
|
58 |
outputs=[selected_state]
|
59 |
)
|
60 |
-
|
61 |
fn=run_lora,
|
62 |
inputs=[prompt, selected_state],
|
63 |
outputs=[result]
|
|
|
50 |
)
|
51 |
with gr.Column():
|
52 |
prompt_title = gr.Markdown("### Click on a LoRA in the gallery to select it")
|
53 |
+
with gr.Row():
|
54 |
+
prompt = gr.Textbox(label="Prompt", show_label=False, lines=1, max_lines=1, placeholder="Type a prompt after selecting a LoRA")
|
55 |
+
button = gr.Button("Run") # Added "Run" button
|
56 |
result = gr.Image(interactive=False, label="Generated Image")
|
57 |
|
58 |
gallery.select(
|
59 |
update_selection,
|
60 |
outputs=[selected_state]
|
61 |
)
|
62 |
+
button.click(
|
63 |
fn=run_lora,
|
64 |
inputs=[prompt, selected_state],
|
65 |
outputs=[result]
|