ArturG9 commited on
Commit
cd7cb8b
1 Parent(s): 648f093

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -5
app.py CHANGED
@@ -77,11 +77,7 @@ def create_retriever_from_chroma(vectorstore_path="docs/chroma/", search_type='m
77
  def main():
78
 
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 respublic of Lithuania law documents. How can I help you?"}
83
- ]
84
-
85
 
86
  st.set_page_config(page_title="Lithuanian law documents RAG QA BOT ",
87
  page_icon=":books:")
@@ -91,6 +87,12 @@ def main():
91
  st.header("Chat with multiple PDFs :books:")
92
  st.markdown("Hi, I am Qwen, chat mmodel, based on respublic of Lithuania law document. Write you question and press enter to start chat.")
93
 
 
 
 
 
 
 
94
 
95
  retriever = create_retriever_from_chroma(vectorstore_path="docs/chroma/", search_type='mmr', k=12, chunk_size=300, chunk_overlap=20)
96
  if user_question := st.text_input("Ask a question about your documents:"):
 
77
  def main():
78
 
79
 
80
+
 
 
 
 
81
 
82
  st.set_page_config(page_title="Lithuanian law documents RAG QA BOT ",
83
  page_icon=":books:")
 
87
  st.header("Chat with multiple PDFs :books:")
88
  st.markdown("Hi, I am Qwen, chat mmodel, based on respublic of Lithuania law document. Write you question and press enter to start chat.")
89
 
90
+ if "messages" not in st.session_state:
91
+ st.session_state["messages"] = [
92
+ {"role": "assistant", "content": "Hi, I'm a chatbot who is based on respublic of Lithuania law documents. How can I help you?"}
93
+ ]
94
+
95
+
96
 
97
  retriever = create_retriever_from_chroma(vectorstore_path="docs/chroma/", search_type='mmr', k=12, chunk_size=300, chunk_overlap=20)
98
  if user_question := st.text_input("Ask a question about your documents:"):