Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,9 +10,10 @@ from PIL import Image
|
|
| 10 |
# Private modules
|
| 11 |
from authtoken import auth_token
|
| 12 |
|
|
|
|
| 13 |
# Download stable diffusion model from Hugging Face
|
| 14 |
modelid = "CompVis/stable-diffusion-v1-4"
|
| 15 |
-
stable_diffusion_model = StableDiffusionPipeline.from_pretrained(modelid, revision="fp16",
|
| 16 |
|
| 17 |
# Create a Streamlit app
|
| 18 |
st.set_page_config(
|
|
|
|
| 10 |
# Private modules
|
| 11 |
from authtoken import auth_token
|
| 12 |
|
| 13 |
+
|
| 14 |
# Download stable diffusion model from Hugging Face
|
| 15 |
modelid = "CompVis/stable-diffusion-v1-4"
|
| 16 |
+
stable_diffusion_model = StableDiffusionPipeline.from_pretrained(modelid, revision="fp16", dtype=torch.float16, use_auth_token=auth_token)
|
| 17 |
|
| 18 |
# Create a Streamlit app
|
| 19 |
st.set_page_config(
|