Spaces:
Running
Running
Vignesh455
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ def read_content(file_path: str) -> str:
|
|
16 |
|
17 |
|
18 |
def predict(prompt, negative_prompt, guidance_scale, num_inference_steps,model, scheduler, lora, lora_weight):
|
19 |
-
pipeline = diffusers.DiffusionPipeline.from_pretrained("SG161222/RealVisXL_V4.0"
|
20 |
if model == 'Realistic_V6.0':
|
21 |
pipeline = diffusers.DiffusionPipeline.from_pretrained("SG161222/Realistic_Vision_V6.0_B1_noVAE", vae=vae).to("cuda")
|
22 |
pipeline.safety_checker = lambda images, **kwargs: (images, [False] * len(images))
|
|
|
16 |
|
17 |
|
18 |
def predict(prompt, negative_prompt, guidance_scale, num_inference_steps,model, scheduler, lora, lora_weight):
|
19 |
+
pipeline = diffusers.DiffusionPipeline.from_pretrained("SG161222/RealVisXL_V4.0").to("cuda")
|
20 |
if model == 'Realistic_V6.0':
|
21 |
pipeline = diffusers.DiffusionPipeline.from_pretrained("SG161222/Realistic_Vision_V6.0_B1_noVAE", vae=vae).to("cuda")
|
22 |
pipeline.safety_checker = lambda images, **kwargs: (images, [False] * len(images))
|