MasumBhuiyan commited on
Commit
7074e72
·
verified ·
1 Parent(s): 299b551

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -67,7 +67,8 @@ class ABSA(nn.Module):
67
 
68
 
69
  model = ABSA(vocab_size=len(token_2_id.keys()), num_labels=3)
70
- model = model.load_state_dict(torch.load('model_weights.pth'))
 
71
 
72
  print("Model loaded successfully")
73
  app = FastAPI()
 
67
 
68
 
69
  model = ABSA(vocab_size=len(token_2_id.keys()), num_labels=3)
70
+ model.load_state_dict(torch.load('model_weights.pth'))
71
+ model.eval()
72
 
73
  print("Model loaded successfully")
74
  app = FastAPI()