ArturG9 commited on
Commit
3c62aaf
1 Parent(s): 98533b7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -4
app.py CHANGED
@@ -77,6 +77,11 @@ def main():
77
 
78
  st.header("Chat with multiple PDFs :books:")
79
 
 
 
 
 
 
80
  if "messages" not in st.session_state:
81
  st.session_state["messages"] = [
82
  {"role": "assistant", "content": "Hi, I'm a chatbot who is based on lithuanian law documents. How can I help you?"}
@@ -84,10 +89,7 @@ def main():
84
 
85
  for msg in st.session_state.messages:
86
  st.chat_message(msg["role"]).write(msg["content"])
87
-
88
-
89
- user_question = st.text_input("Ask a question about your documents:")
90
-
91
  retriever = create_retriever_from_chroma(vectorstore_path="docs/chroma/", search_type='mmr', k=7, chunk_size=250, chunk_overlap=20)
92
 
93
  if user_question:
 
77
 
78
  st.header("Chat with multiple PDFs :books:")
79
 
80
+
81
+
82
+
83
+ user_question = st.text_input("Ask a question about your documents:")
84
+
85
  if "messages" not in st.session_state:
86
  st.session_state["messages"] = [
87
  {"role": "assistant", "content": "Hi, I'm a chatbot who is based on lithuanian law documents. How can I help you?"}
 
89
 
90
  for msg in st.session_state.messages:
91
  st.chat_message(msg["role"]).write(msg["content"])
92
+
 
 
 
93
  retriever = create_retriever_from_chroma(vectorstore_path="docs/chroma/", search_type='mmr', k=7, chunk_size=250, chunk_overlap=20)
94
 
95
  if user_question: