Spaces:
Runtime error
Runtime error
BilalSardar
commited on
Commit
•
714d462
1
Parent(s):
a892bf8
Update app.py
Browse files
app.py
CHANGED
@@ -27,7 +27,7 @@ modelieo=['nitrosocke/Arcane-Diffusion',
|
|
27 |
def TextToImage(Prompt,model):
|
28 |
model_id = model
|
29 |
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
|
30 |
-
pipe = pipe.to("
|
31 |
|
32 |
prompt = Prompt
|
33 |
image = pipe(prompt).images[0]
|
|
|
27 |
def TextToImage(Prompt,model):
|
28 |
model_id = model
|
29 |
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
|
30 |
+
pipe = pipe.to("cpu")
|
31 |
|
32 |
prompt = Prompt
|
33 |
image = pipe(prompt).images[0]
|