Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ class GELU(torch.nn.Module):
|
|
11 |
torch.nn.modules.activation.GELU = GELU
|
12 |
|
13 |
model = torch.load("/home/user/app/model_3nq5558t_scripted.pkl",map_location=torch.device('cpu'))
|
14 |
-
|
15 |
|
16 |
with open('/home/user/app/val.json', 'r') as handle:
|
17 |
parsed = json.load(handle)
|
|
|
11 |
torch.nn.modules.activation.GELU = GELU
|
12 |
|
13 |
model = torch.load("/home/user/app/model_3nq5558t_scripted.pkl",map_location=torch.device('cpu'))
|
14 |
+
model.eval()
|
15 |
|
16 |
with open('/home/user/app/val.json', 'r') as handle:
|
17 |
parsed = json.load(handle)
|