Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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)]
|