Spaces:
Runtime error
Runtime error
SnehaTiwari
commited on
Commit
·
54ea64b
1
Parent(s):
fd061e3
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ import math
|
|
5 |
import gradio as gr
|
6 |
|
7 |
pipeline = StableDiffusionPipeline.from_pretrained("MohamedRashad/diffusion_fashion", torch_dtype=torch.float16)
|
8 |
-
|
9 |
|
10 |
def image_grid(imgs, rows, cols):
|
11 |
assert len(imgs) == rows*cols
|
|
|
5 |
import gradio as gr
|
6 |
|
7 |
pipeline = StableDiffusionPipeline.from_pretrained("MohamedRashad/diffusion_fashion", torch_dtype=torch.float16)
|
8 |
+
pipeline.to("cuda")
|
9 |
|
10 |
def image_grid(imgs, rows, cols):
|
11 |
assert len(imgs) == rows*cols
|