1NEYRON1 commited on
Commit
e96ee03
·
1 Parent(s): 275db5d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -178,7 +178,7 @@ def classify_text(title, description, show_all=False, threshold=0.95):
178
  return []
179
 
180
  for i in results[0]:
181
- i['label'] = id_to_category[int(i['label'].split('_')[1])]
182
 
183
  if show_all:
184
  filtered_results = []
 
178
  return []
179
 
180
  for i in results[0]:
181
+ i['label'] = id_to_cat[int(i['label'].split('_')[1])]
182
 
183
  if show_all:
184
  filtered_results = []