Commit
·
9d5daa8
1
Parent(s):
cb95512
Update app.py
Browse filesi think i fixed the deserialization issue now
app.py
CHANGED
|
@@ -184,7 +184,7 @@ def sample(model, image_size, batch_size=16, channels=3):
|
|
| 184 |
model = SimpleUnet()
|
| 185 |
|
| 186 |
st.title("Generatig images using a diffusion model")
|
| 187 |
-
model.load_state_dict(torch.load("new_linear_model_1090.pt"
|
| 188 |
|
| 189 |
|
| 190 |
if(st.button("Click to generate image")):
|
|
|
|
| 184 |
model = SimpleUnet()
|
| 185 |
|
| 186 |
st.title("Generatig images using a diffusion model")
|
| 187 |
+
model.load_state_dict(torch.load("new_linear_model_1090.pt", map_location=torch.device('cpu')))
|
| 188 |
|
| 189 |
|
| 190 |
if(st.button("Click to generate image")):
|