vishwask commited on
Commit
e5b87ce
·
verified ·
1 Parent(s): 827c7c8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -94,9 +94,9 @@ def initialize_llmchain(vector_db):
94
  # Initialize database
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
  # Create collection_name for vector database
99
- progress(0.1, desc="Creating collection name...")
100
  collection_name = Path(list_file_path[0]).stem
101
  # Fix potential issues from naming convention
102
  ## Remove space
 
94
  # Initialize database
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
102
  ## Remove space