Spaces:
Sleeping
Sleeping
Update split_files_to_excel.py
Browse files- split_files_to_excel.py +1 -12
split_files_to_excel.py
CHANGED
|
@@ -56,8 +56,6 @@ text_splitter = CharacterTextSplitter(
|
|
| 56 |
)
|
| 57 |
|
| 58 |
|
| 59 |
-
|
| 60 |
-
|
| 61 |
# def update_label(label1):
|
| 62 |
# return gr.update(choices=list(df.columns))
|
| 63 |
|
|
@@ -863,13 +861,4 @@ def non_intelligent_split(files, chunk_size = 1000):
|
|
| 863 |
|
| 864 |
df.to_excel("dataframe_keywords.xlsx", index=False)
|
| 865 |
|
| 866 |
-
return "dataframe_keywords.xlsx"
|
| 867 |
-
|
| 868 |
-
|
| 869 |
-
def function_split_call(fi_input, dropdown, choice, chunk_size):
|
| 870 |
-
if choice == "Intelligent split":
|
| 871 |
-
return split_in_df(fi_input)
|
| 872 |
-
elif choice == "Non intelligent split":
|
| 873 |
-
return non_intelligent_split(fi_input, chunk_size)
|
| 874 |
-
else:
|
| 875 |
-
return split_by_keywords(fi_input,dropdown)
|
|
|
|
| 56 |
)
|
| 57 |
|
| 58 |
|
|
|
|
|
|
|
| 59 |
# def update_label(label1):
|
| 60 |
# return gr.update(choices=list(df.columns))
|
| 61 |
|
|
|
|
| 861 |
|
| 862 |
df.to_excel("dataframe_keywords.xlsx", index=False)
|
| 863 |
|
| 864 |
+
return "dataframe_keywords.xlsx"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|