Update handler.py
Browse files- handler.py +2 -0
handler.py
CHANGED
|
@@ -9,6 +9,8 @@ from huggingface_hub import hf_hub_download
|
|
| 9 |
import io
|
| 10 |
import base64
|
| 11 |
|
|
|
|
|
|
|
| 12 |
torch.save(model.state_dict(), "UNet_Model.pth")
|
| 13 |
|
| 14 |
# Define your UNet class here (shortened version for example)
|
|
|
|
| 9 |
import io
|
| 10 |
import base64
|
| 11 |
|
| 12 |
+
model = UNet()
|
| 13 |
+
|
| 14 |
torch.save(model.state_dict(), "UNet_Model.pth")
|
| 15 |
|
| 16 |
# Define your UNet class here (shortened version for example)
|