Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -82,7 +82,7 @@ class ResnUnet(nn.Module):
|
|
82 |
model=ResnUnet().to('cpu')
|
83 |
|
84 |
# Load the state_dict
|
85 |
-
state_dict = torch.load('
|
86 |
|
87 |
# Create a new state_dict without the 'module.' prefix
|
88 |
new_state_dict = {}
|
|
|
82 |
model=ResnUnet().to('cpu')
|
83 |
|
84 |
# Load the state_dict
|
85 |
+
state_dict = torch.load('real_model2_onnx_compat.pt',map_location='cpu')
|
86 |
|
87 |
# Create a new state_dict without the 'module.' prefix
|
88 |
new_state_dict = {}
|