ZarahShibli commited on
Commit
8c321da
1 Parent(s): df8637c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -44,8 +44,9 @@ def predict(comment_sentence):
44
  # Forward pass through the model
45
  with torch.no_grad():
46
  outputs = model(ids, mask, token_type_ids)
47
-
48
- fin_outputs.extend(torch.sigmoid(torch.tensor(outputs.logits)).cpu().detach().numpy().tolist())
 
49
  print(fin_outputs)
50
  # Convert the outputs to boolean values based on the threshold
51
  outputs_boolean = np.array(fin_outputs) >= 0.25
 
44
  # Forward pass through the model
45
  with torch.no_grad():
46
  outputs = model(ids, mask, token_type_ids)
47
+
48
+ print(outputs)
49
+ fin_outputs.extend(torch.sigmoid(torch.tensor(outputs)).cpu().detach().numpy().tolist())
50
  print(fin_outputs)
51
  # Convert the outputs to boolean values based on the threshold
52
  outputs_boolean = np.array(fin_outputs) >= 0.25