Spaces:
Running
Running
Commit
•
a0b75d7
1
Parent(s):
9c44e81
Let's make sure it runs on GPU :-) (#3)
Browse files- Let's make sure it runs on GPU :-) (3ad69a045e743950cb8347367af8309db25ecb4f)
Co-authored-by: Patrick von Platen <patrickvonplaten@users.noreply.huggingface.co>
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 = []
|