Spaces:
Runtime error
Runtime error
Kushwanth Chowday Kandala
commited on
TypeError: 'NoneType' object is not callable bug test
Browse files
app.py
CHANGED
|
@@ -89,8 +89,8 @@ def chat_actions():
|
|
| 89 |
result = index.query(query_vector, top_k=5, include_metadata=True) # xc is a list of tuples
|
| 90 |
with st.sidebar:
|
| 91 |
st.json(result)
|
| 92 |
-
|
| 93 |
-
for result in
|
| 94 |
st.session_state["chat_history"].append(
|
| 95 |
{
|
| 96 |
"role": "assistant",
|
|
|
|
| 89 |
result = index.query(query_vector, top_k=5, include_metadata=True) # xc is a list of tuples
|
| 90 |
with st.sidebar:
|
| 91 |
st.json(result)
|
| 92 |
+
|
| 93 |
+
for result in result['matches']:
|
| 94 |
st.session_state["chat_history"].append(
|
| 95 |
{
|
| 96 |
"role": "assistant",
|