vishwask commited on
Commit
297e27c
·
verified ·
1 Parent(s): c658d15

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -159,8 +159,8 @@ def conversation(qa_chain, message, history):
159
  # return gr.update(value=""), new_history, response_sources[0], response_sources[1]
160
  return qa_chain, gr.update(value=""), new_history, response_source1, response_source1_page, response_source2, response_source2_page, response_source3, response_source3_page
161
 
162
- document = os.listdir(list_file_path)
163
- vector_db, collection_name = initialize_database(document)
164
  qa_chain = initialize_LLM(vector_db)
165
 
166
 
 
159
  # return gr.update(value=""), new_history, response_sources[0], response_sources[1]
160
  return qa_chain, gr.update(value=""), new_history, response_source1, response_source1_page, response_source2, response_source2_page, response_source3, response_source3_page
161
 
162
+ #document = os.listdir(list_file_obj)
163
+ vector_db, collection_name = initialize_database(list_file_obj)
164
  qa_chain = initialize_LLM(vector_db)
165
 
166