Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -72,6 +72,7 @@ with gr.Blocks() as app:
|
|
72 |
with gr.Row():
|
73 |
with gr.Column(scale=3):
|
74 |
prompt = gr.TextArea(label="Prompt", placeholder="Type a prompt", lines=5)
|
|
|
75 |
cfg_scale = gr.Slider(label="CFG Scale", minimum=1, maximum=20, step=0.5, value=example_cfg_scale)
|
76 |
steps = gr.Slider(label="Steps", minimum=1, maximum=100, step=1, value=example_steps)
|
77 |
width = gr.Slider(label="Width", minimum=256, maximum=1536, step=64, value=example_width)
|
@@ -86,8 +87,6 @@ with gr.Blocks() as app:
|
|
86 |
# Automatically load example data and image when the interface is launched
|
87 |
app.load(load_example, inputs=[], outputs=[prompt, cfg_scale, steps, randomize_seed, seed, width, height, lora_scale, result])
|
88 |
|
89 |
-
generate_button = gr.Button("Generate")
|
90 |
-
|
91 |
generate_button.click(
|
92 |
run_lora,
|
93 |
inputs=[prompt, cfg_scale, steps, randomize_seed, seed, width, height, lora_scale],
|
|
|
72 |
with gr.Row():
|
73 |
with gr.Column(scale=3):
|
74 |
prompt = gr.TextArea(label="Prompt", placeholder="Type a prompt", lines=5)
|
75 |
+
generate_button = gr.Button("Generate")
|
76 |
cfg_scale = gr.Slider(label="CFG Scale", minimum=1, maximum=20, step=0.5, value=example_cfg_scale)
|
77 |
steps = gr.Slider(label="Steps", minimum=1, maximum=100, step=1, value=example_steps)
|
78 |
width = gr.Slider(label="Width", minimum=256, maximum=1536, step=64, value=example_width)
|
|
|
87 |
# Automatically load example data and image when the interface is launched
|
88 |
app.load(load_example, inputs=[], outputs=[prompt, cfg_scale, steps, randomize_seed, seed, width, height, lora_scale, result])
|
89 |
|
|
|
|
|
90 |
generate_button.click(
|
91 |
run_lora,
|
92 |
inputs=[prompt, cfg_scale, steps, randomize_seed, seed, width, height, lora_scale],
|