Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -22,10 +22,10 @@ def predict(name, description):
|
|
22 |
IRDI1 = corpus.iloc[output[0][0].get('corpus_id'),4]
|
23 |
score1 = output[0][0].get('score')
|
24 |
if score1 < 0.5:
|
25 |
-
reliable = '
|
26 |
else:
|
27 |
-
reliable = '
|
28 |
-
scoreOutput = reliable + ' score
|
29 |
|
30 |
return preferedName1, definition1, IRDI1, scoreOutput
|
31 |
|
|
|
22 |
IRDI1 = corpus.iloc[output[0][0].get('corpus_id'),4]
|
23 |
score1 = output[0][0].get('score')
|
24 |
if score1 < 0.5:
|
25 |
+
reliable = 'FALSE'
|
26 |
else:
|
27 |
+
reliable = 'TRUE'
|
28 |
+
scoreOutput = reliable + ' (score = ' + str(score1) + ')'
|
29 |
|
30 |
return preferedName1, definition1, IRDI1, scoreOutput
|
31 |
|