Update app.py
Browse files
app.py
CHANGED
@@ -30,7 +30,8 @@ def query(prompt, is_negative=False, steps=30, cfg_scale=7, sampler="DPM++ 2M Ka
|
|
30 |
"steps": steps,
|
31 |
"cfg_scale": cfg_scale,
|
32 |
"seed": seed if seed!= -1 else random.randint(1, 1000000000),
|
33 |
-
"strength": strength
|
|
|
34 |
}
|
35 |
|
36 |
API_URL = API_URLS[model]
|
@@ -81,6 +82,6 @@ with gr.Blocks(theme='Nymbo/Nymbo_Theme', css=css) as app:
|
|
81 |
with gr.Row():
|
82 |
image_output = gr.Image(type="pil", label="Image Output", elem_id="gallery")
|
83 |
|
84 |
-
text_button.click(query, inputs=[text_prompt, negative_prompt, steps, cfg, method, seed, strength, model
|
85 |
|
86 |
app.launch(show_api=True, share=True)
|
|
|
30 |
"steps": steps,
|
31 |
"cfg_scale": cfg_scale,
|
32 |
"seed": seed if seed!= -1 else random.randint(1, 1000000000),
|
33 |
+
"strength": strength,
|
34 |
+
"provider": "replicate"
|
35 |
}
|
36 |
|
37 |
API_URL = API_URLS[model]
|
|
|
82 |
with gr.Row():
|
83 |
image_output = gr.Image(type="pil", label="Image Output", elem_id="gallery")
|
84 |
|
85 |
+
text_button.click(query, inputs=[text_prompt, negative_prompt, steps, cfg, method, seed, strength, model], outputs=image_output)
|
86 |
|
87 |
app.launch(show_api=True, share=True)
|