Spaces:
Sleeping
Sleeping
Update
Browse files
app.py
CHANGED
@@ -1,12 +1,11 @@
|
|
1 |
import gradio as gr
|
2 |
import torch
|
3 |
-
|
4 |
-
from diffusers import StableDiffusionPipeline
|
5 |
|
6 |
-
SAFETENSORS_PATH = "./dreamshaper_5BakedVae.safetensors"
|
7 |
|
8 |
def generate(prompt):
|
9 |
-
pipeline =
|
10 |
pipeline.to("cuda")
|
11 |
return pipeline(prompt).images[0]
|
12 |
|
|
|
1 |
import gradio as gr
|
2 |
import torch
|
3 |
+
from diffusers import DiffusionPipeline
|
4 |
+
# from diffusers import StableDiffusionPipeline
|
5 |
|
|
|
6 |
|
7 |
def generate(prompt):
|
8 |
+
pipeline = DiffusionPipeline.from_pretrained("Lykon/DreamShaper")
|
9 |
pipeline.to("cuda")
|
10 |
return pipeline(prompt).images[0]
|
11 |
|