ArturG9 commited on
Commit
6a474c7
1 Parent(s): 5f090c4

Update app.py

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