Update app.py
Browse files
app.py
CHANGED
@@ -158,12 +158,11 @@ def conversation(qa_chain, message, history):
|
|
158 |
#qa_chain =
|
159 |
|
160 |
|
161 |
-
|
162 |
def demo():
|
163 |
with gr.Blocks(theme='base') as demo:
|
164 |
-
|
165 |
qa_chain = gr.State()
|
166 |
-
|
167 |
|
168 |
vector_db, collection_name = initialize_database(list_file_obj)
|
169 |
chatbot = gr.Chatbot(height=300)
|
|
|
158 |
#qa_chain =
|
159 |
|
160 |
|
|
|
161 |
def demo():
|
162 |
with gr.Blocks(theme='base') as demo:
|
163 |
+
vector_db = gr.State()
|
164 |
qa_chain = gr.State()
|
165 |
+
collection_name = gr.State()
|
166 |
|
167 |
vector_db, collection_name = initialize_database(list_file_obj)
|
168 |
chatbot = gr.Chatbot(height=300)
|