Kushwanth Chowday Kandala commited on
Commit
150b8d9
1 Parent(s): 544f3f0

TypeError: 'NoneType' object is not callable bug test

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -90,11 +90,11 @@ def chat_actions():
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",
97
- "content": f"{round(result['score'],2)}: {result['metadata']['text']}",
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