Spaces:
Sleeping
Sleeping
Israr-dawar
commited on
Commit
Β·
b3bcecc
1
Parent(s):
a2478aa
Update app.py
Browse files
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'] = []
|