Spaces:
Runtime error
Runtime error
Kushwanth Chowday Kandala
commited on
Commit
•
9c2d532
1
Parent(s):
f76455a
TypeError: Object of type QueryResponse is not JSON serializable
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ import os
|
|
3 |
from streamlit_chat import message
|
4 |
import numpy as np
|
5 |
import pandas as pd
|
6 |
-
import json
|
7 |
|
8 |
# st.config(PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION="python")
|
9 |
|
@@ -91,7 +91,7 @@ def chat_actions():
|
|
91 |
st.session_state["chat_history"].append(
|
92 |
{
|
93 |
"role": "assistant",
|
94 |
-
"content":
|
95 |
}, # This can be replaced with your chat response logic
|
96 |
)
|
97 |
|
|
|
3 |
from streamlit_chat import message
|
4 |
import numpy as np
|
5 |
import pandas as pd
|
6 |
+
# import json
|
7 |
|
8 |
# st.config(PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION="python")
|
9 |
|
|
|
91 |
st.session_state["chat_history"].append(
|
92 |
{
|
93 |
"role": "assistant",
|
94 |
+
"content": result,
|
95 |
}, # This can be replaced with your chat response logic
|
96 |
)
|
97 |
|