Spaces:
Runtime error
Runtime error
ghosthamlet
commited on
Commit
•
9330898
1
Parent(s):
537e2b2
Update app.py
Browse files
app.py
CHANGED
@@ -2,8 +2,8 @@ import gradio as gr
|
|
2 |
import torch
|
3 |
from diffusers import UnCLIPPipeline
|
4 |
|
5 |
-
pipe = UnCLIPPipeline.from_pretrained("kakaobrain/karlo-v1-alpha", torch_dtype=torch.float16
|
6 |
-
pipe = pipe.to("
|
7 |
|
8 |
def run(prompt):
|
9 |
images = pipe(prompt, num_images_per_prompt=6).images
|
|
|
2 |
import torch
|
3 |
from diffusers import UnCLIPPipeline
|
4 |
|
5 |
+
pipe = UnCLIPPipeline.from_pretrained("kakaobrain/karlo-v1-alpha") # , torch_dtype=torch.float16
|
6 |
+
pipe = pipe.to("cpu")
|
7 |
|
8 |
def run(prompt):
|
9 |
images = pipe(prompt, num_images_per_prompt=6).images
|