Spaces:
Runtime error
Runtime error
aakashch0179
commited on
Commit
•
7cb2f03
1
Parent(s):
0d89cb6
Update app.py
Browse files
app.py
CHANGED
@@ -119,7 +119,8 @@ from PIL import Image
|
|
119 |
import numpy as np
|
120 |
|
121 |
# Model loading
|
122 |
-
ckpt_id = "openai/shap-e"
|
|
|
123 |
@st.cache_resource
|
124 |
def load_model():
|
125 |
return StableDiffusionPipeline.from_pretrained(ckpt_id).to("cuda")
|
|
|
119 |
import numpy as np
|
120 |
|
121 |
# Model loading
|
122 |
+
ckpt_id = "openai/shap-e"
|
123 |
+
StableDiffusionPipeline.from_pretrained(ckpt_id, torch_dtype=torch.float16, use_auth_token=True).to("cuda")
|
124 |
@st.cache_resource
|
125 |
def load_model():
|
126 |
return StableDiffusionPipeline.from_pretrained(ckpt_id).to("cuda")
|