Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -27,7 +27,7 @@ article_text = """
|
|
| 27 |
</div>
|
| 28 |
"""
|
| 29 |
|
| 30 |
-
def query(lora_id, prompt,
|
| 31 |
if prompt == "" or prompt == None:
|
| 32 |
return None
|
| 33 |
|
|
@@ -128,6 +128,6 @@ with gr.Blocks(theme='Nymbo/Nymbo_Theme', css=css) as app:
|
|
| 128 |
)
|
| 129 |
|
| 130 |
|
| 131 |
-
text_button.click(query, inputs=[custom_lora, text_prompt,
|
| 132 |
|
| 133 |
app.launch(show_api=False, share=False)
|
|
|
|
| 27 |
</div>
|
| 28 |
"""
|
| 29 |
|
| 30 |
+
def query(lora_id, prompt, steps=28, cfg_scale=3.5, sampler="DPM++ 2M Karras", seed=-1, width=1024, height=1024):
|
| 31 |
if prompt == "" or prompt == None:
|
| 32 |
return None
|
| 33 |
|
|
|
|
| 128 |
)
|
| 129 |
|
| 130 |
|
| 131 |
+
text_button.click(query, inputs=[custom_lora, text_prompt, steps, cfg, method, seed, width, height], outputs=[image_output,seed_output])
|
| 132 |
|
| 133 |
app.launch(show_api=False, share=False)
|