Walmart-the-bag commited on
Commit
c4cc804
1 Parent(s): 3075cc3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,11 +1,11 @@
1
- from diffusers import StableDiffusionPipeline
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 = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
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()