Update app.py
Browse files
app.py
CHANGED
@@ -95,7 +95,7 @@ def initialize_llmchain(vector_db):
|
|
95 |
def initialize_database(list_file_obj):
|
96 |
# Create list of documents (when valid)
|
97 |
#list_file_path = [x.name for x in list_file_obj if x is not None]
|
98 |
-
|
99 |
# Create collection_name for vector database
|
100 |
collection_name = Path(list_file_path[0]).stem
|
101 |
# Fix potential issues from naming convention
|
|
|
95 |
def initialize_database(list_file_obj):
|
96 |
# Create list of documents (when valid)
|
97 |
#list_file_path = [x.name for x in list_file_obj if x is not None]
|
98 |
+
list_file_obj = list_file_path
|
99 |
# Create collection_name for vector database
|
100 |
collection_name = Path(list_file_path[0]).stem
|
101 |
# Fix potential issues from naming convention
|