atrytone commited on
Commit
519070e
·
1 Parent(s): 39dc65a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -78,7 +78,7 @@ def inference(query, k=30):
78
  a_table.append(record)
79
 
80
  del j_bucket['None']
81
- j_table = sorted([[journal, score] for journal,
82
  score in j_bucket.items()],
83
  key=lambda x: x[1], reverse=True)
84
  j_table = [[i+1, item[0], item[1]] for i, item in enumerate(j_table)]
 
78
  a_table.append(record)
79
 
80
  del j_bucket['None']
81
+ j_table = sorted([[journal, round(score,3)] for journal,
82
  score in j_bucket.items()],
83
  key=lambda x: x[1], reverse=True)
84
  j_table = [[i+1, item[0], item[1]] for i, item in enumerate(j_table)]