Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -149,9 +149,14 @@ with gr.Blocks(css=css) as app:
|
|
149 |
examples = examples,
|
150 |
inputs = [text_prompt],
|
151 |
)
|
152 |
-
|
|
|
|
|
|
|
|
|
|
|
153 |
|
154 |
# text_button.click(query, inputs=[custom_lora, text_prompt, steps, cfg, randomize_seed, seed, width, height], outputs=[image_output,seed_output, seed])
|
155 |
-
text_button.click(infer, inputs=[text_prompt, seed, randomize_seed, width, height, cfg, steps, custom_lora, lora_scale], outputs=[image_output,seed_output, seed])
|
156 |
|
157 |
app.launch(share=True)
|
|
|
149 |
examples = examples,
|
150 |
inputs = [text_prompt],
|
151 |
)
|
152 |
+
gr.on(
|
153 |
+
triggers=[text_button.click, text_prompt.submit],
|
154 |
+
fn = infer,
|
155 |
+
inputs=[text_prompt, seed, randomize_seed, width, height, cfg, steps, custom_lora, lora_scale],
|
156 |
+
outputs=[image_output,seed_output, seed]
|
157 |
+
)
|
158 |
|
159 |
# text_button.click(query, inputs=[custom_lora, text_prompt, steps, cfg, randomize_seed, seed, width, height], outputs=[image_output,seed_output, seed])
|
160 |
+
# text_button.click(infer, inputs=[text_prompt, seed, randomize_seed, width, height, cfg, steps, custom_lora, lora_scale], outputs=[image_output,seed_output, seed])
|
161 |
|
162 |
app.launch(share=True)
|