Update app.py
Browse files
app.py
CHANGED
@@ -41,7 +41,7 @@ with st.container():
|
|
41 |
st.write(input_text)
|
42 |
st.session_state.chat_history.append({"role" : "user", "content" : input_text}) #append message to chat history
|
43 |
|
44 |
-
chat_response = demo_chat.demo_chain(input_text=input_text, memory=st.session_state.memory, model=
|
45 |
first_answer = chat_response.split("Human")[0] #Because of Predict it prints the whole conversation.Here we seperate the first answer only.
|
46 |
|
47 |
with st.chat_message("assistant"):
|
|
|
41 |
st.write(input_text)
|
42 |
st.session_state.chat_history.append({"role" : "user", "content" : input_text}) #append message to chat history
|
43 |
|
44 |
+
chat_response = demo_chat.demo_chain(input_text=input_text, memory=st.session_state.memory, model= model)
|
45 |
first_answer = chat_response.split("Human")[0] #Because of Predict it prints the whole conversation.Here we seperate the first answer only.
|
46 |
|
47 |
with st.chat_message("assistant"):
|