vishwask commited on
Commit
3b7e14c
·
verified ·
1 Parent(s): 1fac6f7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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
- list_file_path = list_file_obj
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_path = os.listdir(list_file_obj)
99
  # Create collection_name for vector database
100
  collection_name = Path(list_file_path[0]).stem
101
  # Fix potential issues from naming convention