Spaces:
Runtime error
Runtime error
ariana sutanto
commited on
Commit
•
9a4b45d
1
Parent(s):
e4ecba7
message
Browse files
app.py
CHANGED
@@ -43,7 +43,8 @@ def get_score(abstract):
|
|
43 |
predictions = F.softmax(logits, dim=1) #will get the probabilities of each label 0 and 1
|
44 |
print(predictions)
|
45 |
predictions = predictions.numpy()
|
46 |
-
|
|
|
47 |
|
48 |
return score
|
49 |
|
|
|
43 |
predictions = F.softmax(logits, dim=1) #will get the probabilities of each label 0 and 1
|
44 |
print(predictions)
|
45 |
predictions = predictions.numpy()
|
46 |
+
print(predictions)
|
47 |
+
score = predictions[0] #get the probability of the label being 1 (patent accepted)
|
48 |
|
49 |
return score
|
50 |
|