Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ models=[
|
|
15 |
|
16 |
def TextToImage(Prompt,model):
|
17 |
model_id = model
|
18 |
-
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.
|
19 |
pipe = pipe.to("cpu")
|
20 |
prompt = Prompt
|
21 |
image = pipe(prompt).images[0]
|
|
|
15 |
|
16 |
def TextToImage(Prompt,model):
|
17 |
model_id = model
|
18 |
+
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
|
19 |
pipe = pipe.to("cpu")
|
20 |
prompt = Prompt
|
21 |
image = pipe(prompt).images[0]
|