JoBeer commited on
Commit
04e7c76
1 Parent(s): 59cbc05

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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 = 'false'
26
  else:
27
- reliable = 'true'
28
- scoreOutput = reliable + ' score: ' + str(score1)
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