Spaces:
Paused
Paused
Commit
•
d5985b3
1
Parent(s):
4ea94e4
Update app.py
Browse files
app.py
CHANGED
@@ -89,6 +89,7 @@ with inpainter as demo:
|
|
89 |
schedulers = ["DEISMultistepScheduler", "HeunDiscreteScheduler", "EulerDiscreteScheduler", "DPMSolverMultistepScheduler", "DPMSolverMultistepScheduler-Karras", "DPMSolverMultistepScheduler-Karras-SDE"]
|
90 |
scheduler = gr.Dropdown(label="Schedulers", choices=schedulers, value="EulerDiscreteScheduler")
|
91 |
output_image_b64 = gr.Textbox()
|
|
|
92 |
btn.click(fn=predict, inputs=[secret_token, input_image_b64, input_mask_b64, prompt, negative_prompt, guidance_scale, steps, strength, scheduler], outputs=output_image_b64)
|
93 |
|
94 |
inpainter.queue(max_size=25).launch()
|
|
|
89 |
schedulers = ["DEISMultistepScheduler", "HeunDiscreteScheduler", "EulerDiscreteScheduler", "DPMSolverMultistepScheduler", "DPMSolverMultistepScheduler-Karras", "DPMSolverMultistepScheduler-Karras-SDE"]
|
90 |
scheduler = gr.Dropdown(label="Schedulers", choices=schedulers, value="EulerDiscreteScheduler")
|
91 |
output_image_b64 = gr.Textbox()
|
92 |
+
btn = gr.Button("Inpaint")
|
93 |
btn.click(fn=predict, inputs=[secret_token, input_image_b64, input_mask_b64, prompt, negative_prompt, guidance_scale, steps, strength, scheduler], outputs=output_image_b64)
|
94 |
|
95 |
inpainter.queue(max_size=25).launch()
|