ArturG9 commited on
Commit
7e20ec0
1 Parent(s): 1706338

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -88,10 +88,10 @@ def main(vectorstore):
88
  response = conversation_chain.invoke(input_dict, config)
89
  st.chat_message("ai").write(response["answer"])
90
 
91
- if "docs" in response and response["documents"]:
92
- for index, doc in enumerate(response["documents"]):
93
- with st.expander(f"Document {index + 1}"):
94
- st.write(doc)
95
  else:
96
  st.error("Conversation chain is not available.")
97
 
 
88
  response = conversation_chain.invoke(input_dict, config)
89
  st.chat_message("ai").write(response["answer"])
90
 
91
+ if "docs" in response and response["documents"]:
92
+ for index, doc in enumerate(response["documents"]):
93
+ with st.expander(f"Document {index + 1}"):
94
+ st.write(doc)
95
  else:
96
  st.error("Conversation chain is not available.")
97