Spaces:
Runtime error
Runtime error
Commit ·
eede2f2
1
Parent(s): c41878e
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,5 +1,6 @@
|
|
| 1 |
import gradio
|
| 2 |
import re
|
|
|
|
| 3 |
from kbert_topics import extract_topics
|
| 4 |
from mapping import get_mapping
|
| 5 |
from topics_extraction import classify
|
|
@@ -18,6 +19,12 @@ def get_output(event_info):
|
|
| 18 |
flattened_list.extend([x.strip().replace(' ','_') for x in sectors_main])
|
| 19 |
flattened_list = [ x.strip() for x in flattened_list if x!='']
|
| 20 |
print(flattened_list, tags_list)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
others = [x for x in tags_list if x not in flattened_list]
|
| 22 |
|
| 23 |
else:
|
|
|
|
| 1 |
import gradio
|
| 2 |
import re
|
| 3 |
+
from preprocess_function import lam_list
|
| 4 |
from kbert_topics import extract_topics
|
| 5 |
from mapping import get_mapping
|
| 6 |
from topics_extraction import classify
|
|
|
|
| 19 |
flattened_list.extend([x.strip().replace(' ','_') for x in sectors_main])
|
| 20 |
flattened_list = [ x.strip() for x in flattened_list if x!='']
|
| 21 |
print(flattened_list, tags_list)
|
| 22 |
+
flattened_list = lam_list(flattened_list)
|
| 23 |
+
print(flattened_list)
|
| 24 |
+
|
| 25 |
+
tags_list_check = lam_list(tags_list)
|
| 26 |
+
print(tags_list_check)
|
| 27 |
+
|
| 28 |
others = [x for x in tags_list if x not in flattened_list]
|
| 29 |
|
| 30 |
else:
|