ArturG9 commited on
Commit
261a9b2
1 Parent(s): 2b8a4a1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -7
app.py CHANGED
@@ -77,8 +77,13 @@ def main():
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
 
@@ -90,13 +95,9 @@ def main():
90
  handle_userinput(user_question,retriever)
91
 
92
 
93
- if "messages" not in st.session_state:
94
- st.session_state["messages"] = [
95
- {"role": "assistant", "content": "Hi, I'm a chatbot who is based on lithuanian law documents. How can I help you?"}
96
- ]
97
 
98
- for msg in st.session_state.messages:
99
- st.chat_message(msg["role"]).write(msg["content"])
100
 
101
 
102
  def handle_userinput(user_question,retriever):
 
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?"}
83
+ ]
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
 
 
95
  handle_userinput(user_question,retriever)
96
 
97
 
98
+
 
 
 
99
 
100
+
 
101
 
102
 
103
  def handle_userinput(user_question,retriever):