atrytone commited on
Commit
5b33fa9
1 Parent(s): b356e3d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -83,7 +83,8 @@ def inference(query):
83
  ]
84
  a_table.append(record)
85
 
86
- del j_bucket['None']
 
87
  j_table = sorted([[journal, round(score, 3)] for journal,
88
  score in j_bucket.items()],
89
  key=lambda x: x[1], reverse=True)
 
83
  ]
84
  a_table.append(record)
85
 
86
+ if j_bucket['None']:
87
+ del j_bucket['None']
88
  j_table = sorted([[journal, round(score, 3)] for journal,
89
  score in j_bucket.items()],
90
  key=lambda x: x[1], reverse=True)