KvrParaskevi commited on
Commit
c50f997
·
verified ·
1 Parent(s): 857f215

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -56,7 +56,7 @@ with st.container():
56
  st.write(input_text)
57
  st.session_state.chat_history.append({"role" : "user", "content" : input_text}) #append message to chat history
58
 
59
- chat_response = demo_chat.demo_chain(input_text=input_text, memory=st.session_state.memory, model= chat_model)
60
  #first_answer = chat_response.split("Human")[0] #Because of Predict it prints the whole conversation.Here we seperate the first answer only.
61
  first_answer = model_pipeline(st.session_state.chat_history)
62
 
 
56
  st.write(input_text)
57
  st.session_state.chat_history.append({"role" : "user", "content" : input_text}) #append message to chat history
58
 
59
+ #chat_response = demo_chat.demo_chain(input_text=input_text, memory=st.session_state.memory, model= chat_model)
60
  #first_answer = chat_response.split("Human")[0] #Because of Predict it prints the whole conversation.Here we seperate the first answer only.
61
  first_answer = model_pipeline(st.session_state.chat_history)
62