Kushwanth Chowday Kandala commited on
Commit
544f3f0
1 Parent(s): 909aec0

TypeError: 'NoneType' object is not callable bug test

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 xc['matches']:
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",