Spaces:
Runtime error
Runtime error
ariana sutanto
commited on
Commit
·
7fe46a2
1
Parent(s):
9a4b45d
message
Browse files
app.py
CHANGED
|
@@ -44,7 +44,7 @@ def get_score(abstract):
|
|
| 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 |
|
|
|
|
| 44 |
print(predictions)
|
| 45 |
predictions = predictions.numpy()
|
| 46 |
print(predictions)
|
| 47 |
+
score = predictions[0][1] #get the probability of the label being 1 (patent accepted)
|
| 48 |
|
| 49 |
return score
|
| 50 |
|