Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -116,9 +116,9 @@ def main():
|
|
116 |
# Generate response using the RAG pipeline
|
117 |
answer = get_context_retriever_chain(vector_store,question)
|
118 |
# Display the generated answer
|
119 |
-
|
120 |
-
|
121 |
-
st.text_area("Answer", value=
|
122 |
|
123 |
if __name__ == '__main__':
|
124 |
main()
|
|
|
116 |
# Generate response using the RAG pipeline
|
117 |
answer = get_context_retriever_chain(vector_store,question)
|
118 |
# Display the generated answer
|
119 |
+
split_string = "Question: " + str(question)
|
120 |
+
result = answer.split(split_string)[-1]
|
121 |
+
st.text_area("Answer", value=result, height=300, disabled=True)
|
122 |
|
123 |
if __name__ == '__main__':
|
124 |
main()
|