Spaces:
Runtime error
Runtime error
ZarahShibli
commited on
Commit
•
3711e26
1
Parent(s):
7b98d00
Update app.py
Browse files
app.py
CHANGED
@@ -51,7 +51,7 @@ def predict(comment_sentence):
|
|
51 |
print(outputs[0])
|
52 |
#outputs = torch.from_numpy(outputs).float()
|
53 |
fin_outputs.extend(torch.sigmoid(outputs[0]).detach().numpy().tolist())
|
54 |
-
print(fin_outputs)
|
55 |
# Convert the outputs to boolean values based on the threshold
|
56 |
outputs_boolean = np.array(fin_outputs[0]) >= 0.25
|
57 |
|
|
|
51 |
print(outputs[0])
|
52 |
#outputs = torch.from_numpy(outputs).float()
|
53 |
fin_outputs.extend(torch.sigmoid(outputs[0]).detach().numpy().tolist())
|
54 |
+
print(fin_outputs[0])
|
55 |
# Convert the outputs to boolean values based on the threshold
|
56 |
outputs_boolean = np.array(fin_outputs[0]) >= 0.25
|
57 |
|