Update app.py
Browse files
app.py
CHANGED
@@ -105,10 +105,10 @@ def initialize_database(list_file_obj):
|
|
105 |
collection_name = collection_name[:50]
|
106 |
print(collection_name)
|
107 |
## Enforce start and end as alphanumeric character
|
108 |
-
if not collection_name[0].isalnum():
|
109 |
-
|
110 |
-
if not collection_name[-1].isalnum():
|
111 |
-
|
112 |
# print('list_file_path: ', list_file_path)
|
113 |
print('Collection name: ', collection_name)
|
114 |
# Load document and create splits
|
|
|
105 |
collection_name = collection_name[:50]
|
106 |
print(collection_name)
|
107 |
## Enforce start and end as alphanumeric character
|
108 |
+
# if not collection_name[0].isalnum():
|
109 |
+
# collection_name[0] = 'A'
|
110 |
+
# if not collection_name[-1].isalnum():
|
111 |
+
# collection_name[-1] = 'Z'
|
112 |
# print('list_file_path: ', list_file_path)
|
113 |
print('Collection name: ', collection_name)
|
114 |
# Load document and create splits
|