Update app.py
Browse files
app.py
CHANGED
|
@@ -20,7 +20,7 @@ import streamlit as st
|
|
| 20 |
def pic_mo(prom):
|
| 21 |
model_id = "runwayml/stable-diffusion-v1-5"
|
| 22 |
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
|
| 23 |
-
pipe = pipe.to("
|
| 24 |
|
| 25 |
prompt = str(prom)
|
| 26 |
|
|
|
|
| 20 |
def pic_mo(prom):
|
| 21 |
model_id = "runwayml/stable-diffusion-v1-5"
|
| 22 |
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
|
| 23 |
+
pipe = pipe.to("cpu")
|
| 24 |
|
| 25 |
prompt = str(prom)
|
| 26 |
|