Update app.py
Browse files
app.py
CHANGED
|
@@ -30,7 +30,7 @@ mmodels = {
|
|
| 30 |
"Redmond SDXL": "artificialguybr/LogoRedmond-LogoLoraForSDXL-V2",
|
| 31 |
"Arcane": "nitrosocke/Arcane-Diffusion"
|
| 32 |
}
|
| 33 |
-
def query(prompt, is_negative=False,
|
| 34 |
if prompt == "" or prompt == None:
|
| 35 |
raise gr.Error("🙏 Опиши пожалуйста как должно выглядеть изображение")
|
| 36 |
return None
|
|
@@ -176,5 +176,5 @@ with gr.Blocks(css=css, theme="YTheme/KidsShool") as dalle:
|
|
| 176 |
with gr.Row():
|
| 177 |
image_output = gr.Image(type="pil", label="Изображение", elem_id="gallery")
|
| 178 |
|
| 179 |
-
text_button.click(query, inputs=[text_prompt, negative_prompt], outputs=image_output, concurrency_limit=44)
|
| 180 |
dalle.launch(show_api=False, share=False)
|
|
|
|
| 30 |
"Redmond SDXL": "artificialguybr/LogoRedmond-LogoLoraForSDXL-V2",
|
| 31 |
"Arcane": "nitrosocke/Arcane-Diffusion"
|
| 32 |
}
|
| 33 |
+
def query(prompt, is_negative=False, model="1", gpt=True, steps=30, cfg_scale=7, sampler="DPM++ 2M Karras", seed=-1, strength=0.7, width=1024, height=1024):
|
| 34 |
if prompt == "" or prompt == None:
|
| 35 |
raise gr.Error("🙏 Опиши пожалуйста как должно выглядеть изображение")
|
| 36 |
return None
|
|
|
|
| 176 |
with gr.Row():
|
| 177 |
image_output = gr.Image(type="pil", label="Изображение", elem_id="gallery")
|
| 178 |
|
| 179 |
+
text_button.click(query, inputs=[text_prompt, negative_prompt, model], outputs=image_output, concurrency_limit=44)
|
| 180 |
dalle.launch(show_api=False, share=False)
|