Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -23,8 +23,8 @@ def predict(dict, prompt="", negative_prompt="", guidance_scale=7.5, steps=30, s
|
|
| 23 |
|
| 24 |
pipe = AutoPipelineForInpainting.from_pretrained("SG161222/Realistic_Vision_V5.0_noVAE",vae=vae).to("cuda")
|
| 25 |
|
| 26 |
-
if model == "Realistic_V5.
|
| 27 |
-
pipe = AutoPipelineForInpainting.from_pretrained("SG161222/Realistic_Vision_V5.
|
| 28 |
if model == "EpicRealism":
|
| 29 |
pipe = AutoPipelineForInpainting.from_pretrained("emilianJR/epiCRealism", vae=vae).to("cuda")
|
| 30 |
if model == "Realistic_V6.0":
|
|
@@ -135,7 +135,7 @@ with image_blocks as demo:
|
|
| 135 |
scheduler = gr.Dropdown(label="Schedulers", choices=schedulers, value="DPMSolverMultistepScheduler-Karras")
|
| 136 |
|
| 137 |
with gr.Column():
|
| 138 |
-
image_out = gr.Image(label="Output", elem_id="output-img", height=
|
| 139 |
|
| 140 |
|
| 141 |
btn.click(fn=predict, inputs=[image, prompt, negative_prompt, guidance_scale, steps, strength, model, scheduler], outputs=[image_out], api_name='run')
|
|
|
|
| 23 |
|
| 24 |
pipe = AutoPipelineForInpainting.from_pretrained("SG161222/Realistic_Vision_V5.0_noVAE",vae=vae).to("cuda")
|
| 25 |
|
| 26 |
+
if model == "Realistic_V5.1":
|
| 27 |
+
pipe = AutoPipelineForInpainting.from_pretrained("SG161222/Realistic_Vision_V5.1_noVAE", vae=vae).to("cuda")
|
| 28 |
if model == "EpicRealism":
|
| 29 |
pipe = AutoPipelineForInpainting.from_pretrained("emilianJR/epiCRealism", vae=vae).to("cuda")
|
| 30 |
if model == "Realistic_V6.0":
|
|
|
|
| 135 |
scheduler = gr.Dropdown(label="Schedulers", choices=schedulers, value="DPMSolverMultistepScheduler-Karras")
|
| 136 |
|
| 137 |
with gr.Column():
|
| 138 |
+
image_out = gr.Image(label="Output", elem_id="output-img", height=1024, width=512)
|
| 139 |
|
| 140 |
|
| 141 |
btn.click(fn=predict, inputs=[image, prompt, negative_prompt, guidance_scale, steps, strength, model, scheduler], outputs=[image_out], api_name='run')
|