KvrParaskevi commited on
Commit
9775596
1 Parent(s): 374d419

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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=st.session_state.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"):