Update app.py
Browse files
app.py
CHANGED
@@ -41,9 +41,7 @@ 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",
|
45 |
-
repo_default.load_lora_weights("ehristoforu/dalle-3-xl-v2", adapter_name="base")
|
46 |
-
repo_default.set_adapters(["base"], adapter_weights=[0.7])
|
47 |
|
48 |
# repo_large = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.bfloat16, add_watermarker=False, revision="refs/pr/1")
|
49 |
# repo_large.load_lora_weights("ehristoforu/dalle-3-xl-v2", adapter_name="base")
|
@@ -101,6 +99,10 @@ def generate(input=DEFAULT_INPUT, filter_input="", negative_input=DEFAULT_NEGATI
|
|
101 |
else:
|
102 |
steps_set = 25
|
103 |
guidance_set = 7
|
|
|
|
|
|
|
|
|
104 |
|
105 |
if not steps:
|
106 |
steps = steps_set
|
|
|
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 |
|
46 |
# repo_large = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.bfloat16, add_watermarker=False, revision="refs/pr/1")
|
47 |
# repo_large.load_lora_weights("ehristoforu/dalle-3-xl-v2", adapter_name="base")
|
|
|
99 |
else:
|
100 |
steps_set = 25
|
101 |
guidance_set = 7
|
102 |
+
print("1")
|
103 |
+
repo.load_lora_weights("ehristoforu/dalle-3-xl-v2", adapter_name="base")
|
104 |
+
repo.set_adapters(["base"], adapter_weights=[0.7])
|
105 |
+
print(2)
|
106 |
|
107 |
if not steps:
|
108 |
steps = steps_set
|