Update app.py
Browse files
app.py
CHANGED
|
@@ -36,7 +36,7 @@ repo_nsfw_classifier = pipeline("image-classification", model="Falconsai/nsfw_im
|
|
| 36 |
|
| 37 |
repo_default = StableDiffusionXLPipeline.from_pretrained("fluently/Fluently-XL-Final", torch_dtype=torch.float16, use_safetensors=True, add_watermarker=False)
|
| 38 |
repo_default.load_lora_weights("ehristoforu/dalle-3-xl-v2", adapter_name="base")
|
| 39 |
-
repo_default.set_adapters(
|
| 40 |
|
| 41 |
repo_pixel = StableDiffusionXLPipeline.from_pretrained("fluently/Fluently-XL-Final", torch_dtype=torch.float16, use_safetensors=True, add_watermarker=False)
|
| 42 |
repo_pixel.load_lora_weights("artificialguybr/PixelArtRedmond", adapter_name="base")
|
|
@@ -125,7 +125,6 @@ def generate(input=DEFAULT_INPUT, filter_input="", negative_input=DEFAULT_NEGATI
|
|
| 125 |
def cloud():
|
| 126 |
print("[CLOUD] | Space maintained.")
|
| 127 |
|
| 128 |
-
|
| 129 |
# Initialize
|
| 130 |
with gr.Blocks(css=css) as main:
|
| 131 |
with gr.Column():
|
|
|
|
| 36 |
|
| 37 |
repo_default = StableDiffusionXLPipeline.from_pretrained("fluently/Fluently-XL-Final", torch_dtype=torch.float16, use_safetensors=True, add_watermarker=False)
|
| 38 |
repo_default.load_lora_weights("ehristoforu/dalle-3-xl-v2", adapter_name="base")
|
| 39 |
+
repo_default.set_adapters("base")
|
| 40 |
|
| 41 |
repo_pixel = StableDiffusionXLPipeline.from_pretrained("fluently/Fluently-XL-Final", torch_dtype=torch.float16, use_safetensors=True, add_watermarker=False)
|
| 42 |
repo_pixel.load_lora_weights("artificialguybr/PixelArtRedmond", adapter_name="base")
|
|
|
|
| 125 |
def cloud():
|
| 126 |
print("[CLOUD] | Space maintained.")
|
| 127 |
|
|
|
|
| 128 |
# Initialize
|
| 129 |
with gr.Blocks(css=css) as main:
|
| 130 |
with gr.Column():
|