Spaces:
Runtime error
Runtime error
Kushwanth Chowday Kandala
commited on
Commit
•
150b8d9
1
Parent(s):
544f3f0
TypeError: 'NoneType' object is not callable bug test
Browse files
app.py
CHANGED
@@ -90,11 +90,11 @@ def chat_actions():
|
|
90 |
with st.sidebar:
|
91 |
st.json(result)
|
92 |
|
93 |
-
for
|
94 |
st.session_state["chat_history"].append(
|
95 |
{
|
96 |
"role": "assistant",
|
97 |
-
"content": f"{round(
|
98 |
}, # This can be replaced with your chat response logic
|
99 |
)
|
100 |
|
|
|
90 |
with st.sidebar:
|
91 |
st.json(result)
|
92 |
|
93 |
+
for res in result['matches']:
|
94 |
st.session_state["chat_history"].append(
|
95 |
{
|
96 |
"role": "assistant",
|
97 |
+
"content": f"{round(res['score'],2)}: {res['metadata']['text']}",
|
98 |
}, # This can be replaced with your chat response logic
|
99 |
)
|
100 |
|