Spaces:
Sleeping
Sleeping
Update classification.py
Browse files- classification.py +2 -1
classification.py
CHANGED
@@ -17,7 +17,8 @@ def addCategories(df,df_all):
|
|
17 |
print(f"AFTER ADDINGS Those are the categories_all : {categories_all}")
|
18 |
|
19 |
return gr.update(choices=categories_all['topic']),pd.DataFrame.from_dict(categories_all)
|
20 |
-
|
|
|
21 |
df_cat_filter = df_cate.to_dict("list")["topic"]
|
22 |
|
23 |
def filterByTopics(filters, categories):
|
|
|
17 |
print(f"AFTER ADDINGS Those are the categories_all : {categories_all}")
|
18 |
|
19 |
return gr.update(choices=categories_all['topic']),pd.DataFrame.from_dict(categories_all)
|
20 |
+
|
21 |
+
df_cate = pd.DataFrame(categories)
|
22 |
df_cat_filter = df_cate.to_dict("list")["topic"]
|
23 |
|
24 |
def filterByTopics(filters, categories):
|