Staticaliza commited on
Commit
8e79bfc
·
verified ·
1 Parent(s): d34abc6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -9
app.py CHANGED
@@ -41,21 +41,20 @@ footer {
41
 
42
  repo_nsfw_classifier = pipeline("image-classification", model="Falconsai/nsfw_image_detection")
43
 
44
- repo_default = DiffusionPipeline.from_pretrained("fluently/Fluently-XL-Final", torch_dtype=torch.float16, use_safetensors=True, add_watermarker=False)
45
- repo_default.load_lora_weights("ehristoforu/dalle-3-xl-v2", adapter_name="default_base")
46
- repo_default.load_lora_weights("artificialguybr/PixelArtRedmond", adapter_name="pixel_base")
47
- repo_default.load_lora_weights("nerijs/pixel-art-xl", adapter_name="pixel_base_2")
48
 
49
- # repo_large = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.bfloat16, add_watermarker=False, revision="refs/pr/1")
50
  # repo_large.load_lora_weights("ehristoforu/dalle-3-xl-v2", adapter_name="base")
51
- # repo_large.set_adapters(["base"], adapter_weights=[0.7])
52
 
53
  repo_customs = {
54
- "Default": repo_default,
55
  # "Realistic": DiffusionPipeline.from_pretrained("ehristoforu/Visionix-alpha", torch_dtype=torch.float16, use_safetensors=True, add_watermarker=False),
56
  # "Anime": DiffusionPipeline.from_pretrained("cagliostrolab/animagine-xl-3.1", torch_dtype=torch.float16, use_safetensors=True, add_watermarker=False),
57
- "Pixel": repo_default,
58
- # "Large": repo_neo,
59
  }
60
 
61
  # Functions
 
41
 
42
  repo_nsfw_classifier = pipeline("image-classification", model="Falconsai/nsfw_image_detection")
43
 
44
+ # repo_default = DiffusionPipeline.from_pretrained("fluently/Fluently-XL-Final", torch_dtype=torch.float16, use_safetensors=True, add_watermarker=False)
45
+ # repo_default.load_lora_weights("ehristoforu/dalle-3-xl-v2", adapter_name="default_base")
46
+ # repo_default.load_lora_weights("artificialguybr/PixelArtRedmond", adapter_name="pixel_base")
47
+ # repo_default.load_lora_weights("nerijs/pixel-art-xl", adapter_name="pixel_base_2")
48
 
49
+ repo_large = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.bfloat16)
50
  # repo_large.load_lora_weights("ehristoforu/dalle-3-xl-v2", adapter_name="base")
 
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),
55
  # "Anime": DiffusionPipeline.from_pretrained("cagliostrolab/animagine-xl-3.1", torch_dtype=torch.float16, use_safetensors=True, add_watermarker=False),
56
+ # "Pixel": repo_default,
57
+ "Large": repo_large,
58
  }
59
 
60
  # Functions