Update app.py
Browse files
app.py
CHANGED
@@ -75,12 +75,13 @@ with gr.Blocks(theme='Nymbo/Nymbo_Theme', css=css) as app:
|
|
75 |
strength = gr.Slider(label="Strength", value=0.7, minimum=0, maximum=1, step=0.001)
|
76 |
seed = gr.Slider(label="Seed", value=-1, minimum=-1, maximum=1000000000, step=1)
|
77 |
model = gr.Radio(label="Model", value="SDXL 1.0", choices=["SDXL 1.0", "SD 3.5"])
|
|
|
78 |
|
79 |
with gr.Row():
|
80 |
text_button = gr.Button("Run", variant='primary', elem_id="gen-button")
|
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], outputs=image_output)
|
85 |
|
86 |
app.launch(show_api=True, share=True)
|
|
|
75 |
strength = gr.Slider(label="Strength", value=0.7, minimum=0, maximum=1, step=0.001)
|
76 |
seed = gr.Slider(label="Seed", value=-1, minimum=-1, maximum=1000000000, step=1)
|
77 |
model = gr.Radio(label="Model", value="SDXL 1.0", choices=["SDXL 1.0", "SD 3.5"])
|
78 |
+
provider = "replicate"
|
79 |
|
80 |
with gr.Row():
|
81 |
text_button = gr.Button("Run", variant='primary', elem_id="gen-button")
|
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, provider], outputs=image_output)
|
86 |
|
87 |
app.launch(show_api=True, share=True)
|