Spaces:
Runtime error
Runtime error
Kushwanth Chowday Kandala
commited on
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 |
|