Update app.py
Browse files
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'] =
|
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 = []
|