Update app.py
Browse files
app.py
CHANGED
@@ -105,7 +105,7 @@ def get_json_file(docs):
|
|
105 |
# with open(docs, 'r') as f:
|
106 |
json_data = json.load(docs)
|
107 |
|
108 |
-
|
109 |
for s_value in f_value:
|
110 |
text += str(f_key) + str(s_value)
|
111 |
text += '\n'
|
@@ -171,7 +171,7 @@ def main():
|
|
171 |
|
172 |
# create vector store
|
173 |
vectorstore = get_vectorstore(text_chunks)
|
174 |
-
|
175 |
# create conversation chain
|
176 |
st.session_state.conversation = get_conversation_chain(
|
177 |
vectorstore)
|
|
|
105 |
# with open(docs, 'r') as f:
|
106 |
json_data = json.load(docs)
|
107 |
|
108 |
+
for f_key, f_value in json_data.items():
|
109 |
for s_value in f_value:
|
110 |
text += str(f_key) + str(s_value)
|
111 |
text += '\n'
|
|
|
171 |
|
172 |
# create vector store
|
173 |
vectorstore = get_vectorstore(text_chunks)
|
174 |
+
|
175 |
# create conversation chain
|
176 |
st.session_state.conversation = get_conversation_chain(
|
177 |
vectorstore)
|