for876543 commited on
Commit
4edaa99
1 Parent(s): 705a628

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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)