Spaces:
Running
Running
GenAICoder
commited on
Update app.py
Browse files
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 |
-
|
133 |
-
return
|
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:
|