Spaces:
Running
on
Zero
Running
on
Zero
Walmart-the-bag
commited on
Commit
•
c4cc804
1
Parent(s):
3075cc3
Update app.py
Browse files
app.py
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
-
from diffusers import
|
2 |
import torch
|
3 |
from gradio import Interface, Image
|
4 |
import gradio as gr
|
5 |
import spaces
|
6 |
|
7 |
model_id = "RunDiffusion/Juggernaut-X-v10"
|
8 |
-
pipe =
|
9 |
pipe = pipe.to("cuda")
|
10 |
|
11 |
@spaces.GPU()
|
|
|
1 |
+
from diffusers import StableDiffusionXLPipeline
|
2 |
import torch
|
3 |
from gradio import Interface, Image
|
4 |
import gradio as gr
|
5 |
import spaces
|
6 |
|
7 |
model_id = "RunDiffusion/Juggernaut-X-v10"
|
8 |
+
pipe = StableDiffusionXLPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
|
9 |
pipe = pipe.to("cuda")
|
10 |
|
11 |
@spaces.GPU()
|