Spaces:
Sleeping
Sleeping
fix prompt parsing
Browse files
app.py
CHANGED
@@ -217,11 +217,11 @@ def reasoner(query: str, documents: list[str], llm_client: Any):
|
|
217 |
# Accept user input
|
218 |
if prompt := st.chat_input("Type here"):
|
219 |
# Add user message to chat history
|
220 |
-
|
221 |
-
st.session_state.messages.append({"role": "user", "content":
|
222 |
# Display user message in chat message container
|
223 |
with st.chat_message("user"):
|
224 |
-
st.markdown(
|
225 |
|
226 |
options = {}
|
227 |
options["max_tokens"] = 500
|
|
|
217 |
# Accept user input
|
218 |
if prompt := st.chat_input("Type here"):
|
219 |
# Add user message to chat history
|
220 |
+
display_message = prompt + " \n"+ " \n"+ f"Retriever: {selected_retriever}, Reasoner: {selected_reasoner}"
|
221 |
+
st.session_state.messages.append({"role": "user", "content": display_message})
|
222 |
# Display user message in chat message container
|
223 |
with st.chat_message("user"):
|
224 |
+
st.markdown(display_message)
|
225 |
|
226 |
options = {}
|
227 |
options["max_tokens"] = 500
|