Spaces:
Running
Running
updated_cosmetic_changes
Browse files
app.py
CHANGED
@@ -30,7 +30,7 @@ def retriever(query: str):
|
|
30 |
# You could return retrieved info here.
|
31 |
return message
|
32 |
|
33 |
-
def reasoner(info: list):
|
34 |
"""Simulate a 'reasoner' step, thinking about how to answer."""
|
35 |
with st.chat_message("assistant"):
|
36 |
placeholder = st.empty()
|
@@ -57,7 +57,7 @@ if prompt := st.chat_input("Type here"):
|
|
57 |
retrieved_documents=retriever(prompt)
|
58 |
|
59 |
#Calling reasoner
|
60 |
-
reasoning= reasoner(
|
61 |
|
62 |
# Display assistant response in chat message container
|
63 |
with st.chat_message("assistant"):
|
|
|
30 |
# You could return retrieved info here.
|
31 |
return message
|
32 |
|
33 |
+
def reasoner(info: list[str]):
|
34 |
"""Simulate a 'reasoner' step, thinking about how to answer."""
|
35 |
with st.chat_message("assistant"):
|
36 |
placeholder = st.empty()
|
|
|
57 |
retrieved_documents=retriever(prompt)
|
58 |
|
59 |
#Calling reasoner
|
60 |
+
reasoning = reasoner(retrieved_documents)
|
61 |
|
62 |
# Display assistant response in chat message container
|
63 |
with st.chat_message("assistant"):
|