Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -1,18 +1,4 @@
|
|
1 |
|
2 |
-
if torch.cuda.is_available():
|
3 |
-
pipe = StableDiffusionXLPipeline.from_pretrained(
|
4 |
-
"RunDiffusion/Juggernaut-X-v10",
|
5 |
-
torch_dtype=torch.float16
|
6 |
-
)
|
7 |
-
#pipe.scheduler = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config)
|
8 |
-
|
9 |
-
|
10 |
-
#pipe.load_lora_weights("ehristoforu/dalle-3-xl-v2", weight_name="dalle-3-xl-lora-v2.safetensors", adapter_name="dalle")
|
11 |
-
#pipe.set_adapters("dalle")
|
12 |
-
|
13 |
-
pipe.to("cuda")
|
14 |
-
|
15 |
-
|
16 |
|
17 |
import gradio as gr
|
18 |
from diffusers import StableDiffusionXLPipeline, UNet2DConditionModel, EulerDiscreteScheduler, LCMScheduler, AutoencoderKL,DiffusionPipeline
|
|
|
1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
3 |
import gradio as gr
|
4 |
from diffusers import StableDiffusionXLPipeline, UNet2DConditionModel, EulerDiscreteScheduler, LCMScheduler, AutoencoderKL,DiffusionPipeline
|