Update app.py
Browse files
app.py
CHANGED
@@ -162,7 +162,7 @@ def conversation(qa_chain, message, history):
|
|
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 |
|
167 |
def demo():
|
168 |
with gr.Blocks(theme='base') as demo:
|
@@ -187,9 +187,6 @@ def demo():
|
|
187 |
submit_btn = gr.Button('Submit')
|
188 |
clear_button = gr.ClearButton([msg, chatbot])
|
189 |
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
msg.submit(conversation, \
|
194 |
inputs=[qa_chain, msg, chatbot], \
|
195 |
outputs=[qa_chain, msg, chatbot, doc_source1, source1_page, doc_source2, source2_page, doc_source3, source3_page], \
|
|
|
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 |
+
print('qa chain and vector_db done')
|
166 |
|
167 |
def demo():
|
168 |
with gr.Blocks(theme='base') as demo:
|
|
|
187 |
submit_btn = gr.Button('Submit')
|
188 |
clear_button = gr.ClearButton([msg, chatbot])
|
189 |
|
|
|
|
|
|
|
190 |
msg.submit(conversation, \
|
191 |
inputs=[qa_chain, msg, chatbot], \
|
192 |
outputs=[qa_chain, msg, chatbot, doc_source1, source1_page, doc_source2, source2_page, doc_source3, source3_page], \
|