Update app.py
Browse files
app.py
CHANGED
@@ -43,16 +43,16 @@ footer {
|
|
43 |
|
44 |
repo_nsfw_classifier = pipeline("image-classification", model="Falconsai/nsfw_image_detection")
|
45 |
|
46 |
-
repo_default = DiffusionPipeline.from_pretrained("fluently/Fluently-XL-Final", torch_dtype=torch.float16, use_safetensors=True, add_watermarker=False).to(DEVICE)
|
47 |
|
48 |
-
repo_neo = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.1-schnell", torch_dtype=torch.bfloat16, use_safetensors=True, add_watermarker=False, revision="refs/pr/1").to(DEVICE)
|
49 |
repo_neo.load_lora_weights("ehristoforu/dalle-3-xl-v2", adapter_name="base")
|
50 |
repo_neo.set_adapters(["base"], adapter_weights=[0.7])
|
51 |
|
52 |
repo_customs = {
|
53 |
"Default": repo_default,
|
54 |
-
"Realistic": DiffusionPipeline.from_pretrained("ehristoforu/Visionix-alpha", torch_dtype=torch.float16, use_safetensors=True, add_watermarker=False).to(DEVICE),
|
55 |
-
"Anime": DiffusionPipeline.from_pretrained("cagliostrolab/animagine-xl-3.1", torch_dtype=torch.float16, use_safetensors=True, add_watermarker=False).to(DEVICE),
|
56 |
"Pixel": repo_default,
|
57 |
"Neo": repo_neo,
|
58 |
}
|
|
|
43 |
|
44 |
repo_nsfw_classifier = pipeline("image-classification", model="Falconsai/nsfw_image_detection")
|
45 |
|
46 |
+
repo_default = DiffusionPipeline.from_pretrained("fluently/Fluently-XL-Final", device=DEVICE, torch_dtype=torch.float16, use_safetensors=True, add_watermarker=False).to(DEVICE)
|
47 |
|
48 |
+
repo_neo = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.1-schnell", device=DEVICE, torch_dtype=torch.bfloat16, use_safetensors=True, add_watermarker=False, revision="refs/pr/1").to(DEVICE)
|
49 |
repo_neo.load_lora_weights("ehristoforu/dalle-3-xl-v2", adapter_name="base")
|
50 |
repo_neo.set_adapters(["base"], adapter_weights=[0.7])
|
51 |
|
52 |
repo_customs = {
|
53 |
"Default": repo_default,
|
54 |
+
"Realistic": DiffusionPipeline.from_pretrained("ehristoforu/Visionix-alpha", device=DEVICE, torch_dtype=torch.float16, use_safetensors=True, add_watermarker=False).to(DEVICE),
|
55 |
+
"Anime": DiffusionPipeline.from_pretrained("cagliostrolab/animagine-xl-3.1", device=DEVICE, torch_dtype=torch.float16, use_safetensors=True, add_watermarker=False).to(DEVICE),
|
56 |
"Pixel": repo_default,
|
57 |
"Neo": repo_neo,
|
58 |
}
|