Let's make sure it runs on GPU :-)

#3
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -2,6 +2,7 @@ from diffusers import StableDiffusionPipeline
2
  import gradio as gr
3
 
4
  pipe = StableDiffusionPipeline.from_pretrained("nitrosocke/Arcane-Diffusion")
 
5
 
6
  def inference(prompt, guidance, steps):
7
  all_images = []
 
2
  import gradio as gr
3
 
4
  pipe = StableDiffusionPipeline.from_pretrained("nitrosocke/Arcane-Diffusion")
5
+ pipe = pipe.to("cuda")
6
 
7
  def inference(prompt, guidance, steps):
8
  all_images = []