Spaces:
Running
Running
clementsan
commited on
Commit
•
989bff5
1
Parent(s):
da842e1
Reduce collection_name length when needed
Browse files
app.py
CHANGED
@@ -161,6 +161,7 @@ def initialize_database(list_file_obj, chunk_size, chunk_overlap, progress=gr.Pr
|
|
161 |
#file_path = file_obj.name
|
162 |
list_file_path = [x.name for x in list_file_obj if x is not None]
|
163 |
collection_name = Path(list_file_path[0]).stem
|
|
|
164 |
# print('list_file_path: ', list_file_path)
|
165 |
# print('Collection name: ', collection_name)
|
166 |
progress(0.25, desc="Loading document...")
|
|
|
161 |
#file_path = file_obj.name
|
162 |
list_file_path = [x.name for x in list_file_obj if x is not None]
|
163 |
collection_name = Path(list_file_path[0]).stem
|
164 |
+
collection_name = collection_name[:50]
|
165 |
# print('list_file_path: ', list_file_path)
|
166 |
# print('Collection name: ', collection_name)
|
167 |
progress(0.25, desc="Loading document...")
|