GenAICoder commited on
Commit
a18bbab
·
verified ·
1 Parent(s): 887d7a5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -129,8 +129,8 @@ def embedding(chunk,query):
129
  retriever = db.as_retriever()
130
  chain = get_conversational_chain(retriever)
131
  response = chain.invoke(query)
132
- print(response)
133
- return response
134
  #st.write("Reply: ", response["output_text"])
135
 
136
  if 'messages' not in st.session_state:
 
129
  retriever = db.as_retriever()
130
  chain = get_conversational_chain(retriever)
131
  response = chain.invoke(query)
132
+ response_answer=response.split("Answer",-1)[-1]
133
+ return response_answer
134
  #st.write("Reply: ", response["output_text"])
135
 
136
  if 'messages' not in st.session_state: