Israr-dawar commited on
Commit
b3bcecc
Β·
1 Parent(s): a2478aa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -32,10 +32,10 @@ chain = LLMChain(prompt=prompt, llm=llm, memory = memory, output_parser = StrOut
32
  st.title("Psychology ChatBot πŸ§‘πŸ½β€βš•οΈ")
33
  def conversation_chat(query):
34
  result = chain({"text": query, "chat_history": st.session_state['history']})
 
35
  print("restult: ",result)
36
  st.session_state['history'].append((query, result["answer"]))
37
  return result["answer"]
38
-
39
  def initialize_session_state():
40
  if 'history' not in st.session_state:
41
  st.session_state['history'] = []
 
32
  st.title("Psychology ChatBot πŸ§‘πŸ½β€βš•οΈ")
33
  def conversation_chat(query):
34
  result = chain({"text": query, "chat_history": st.session_state['history']})
35
+ print(result) # Add this line
36
  print("restult: ",result)
37
  st.session_state['history'].append((query, result["answer"]))
38
  return result["answer"]
 
39
  def initialize_session_state():
40
  if 'history' not in st.session_state:
41
  st.session_state['history'] = []