Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ import torch
|
|
13 |
from diffusers import AutoencoderKL, DiffusionPipeline
|
14 |
from diffusers import DPMSolverMultistepScheduler
|
15 |
|
16 |
-
DESCRIPTION = "# 🪆 RussianVibe XL
|
17 |
if not torch.cuda.is_available():
|
18 |
DESCRIPTION += "\n<p>Running on CPU 🥶 This demo does not work on CPU.</p>"
|
19 |
|
@@ -34,7 +34,7 @@ if torch.cuda.is_available():
|
|
34 |
use_safetensors=True,
|
35 |
variant="fp16",
|
36 |
)
|
37 |
-
pipe.load_lora_weights("0x7o/RussianVibe-XL-
|
38 |
pipe.scheduler = DPMSolverMultistepScheduler.from_config(pipe.scheduler.config)
|
39 |
if ENABLE_REFINER:
|
40 |
refiner = DiffusionPipeline.from_pretrained(
|
@@ -163,6 +163,7 @@ with gr.Blocks(css="style.css") as demo:
|
|
163 |
label="Negative prompt",
|
164 |
max_lines=1,
|
165 |
placeholder="Enter a negative prompt",
|
|
|
166 |
visible=False,
|
167 |
)
|
168 |
prompt_2 = gr.Text(
|
|
|
13 |
from diffusers import AutoencoderKL, DiffusionPipeline
|
14 |
from diffusers import DPMSolverMultistepScheduler
|
15 |
|
16 |
+
DESCRIPTION = "# 🪆 RussianVibe XL 2.0"
|
17 |
if not torch.cuda.is_available():
|
18 |
DESCRIPTION += "\n<p>Running on CPU 🥶 This demo does not work on CPU.</p>"
|
19 |
|
|
|
34 |
use_safetensors=True,
|
35 |
variant="fp16",
|
36 |
)
|
37 |
+
pipe.load_lora_weights("0x7o/RussianVibe-XL-v2.0")
|
38 |
pipe.scheduler = DPMSolverMultistepScheduler.from_config(pipe.scheduler.config)
|
39 |
if ENABLE_REFINER:
|
40 |
refiner = DiffusionPipeline.from_pretrained(
|
|
|
163 |
label="Negative prompt",
|
164 |
max_lines=1,
|
165 |
placeholder="Enter a negative prompt",
|
166 |
+
value="low quality",
|
167 |
visible=False,
|
168 |
)
|
169 |
prompt_2 = gr.Text(
|