Got it now. I got the error logs and see below (Pasting only the error part)
[18:55:29] 📦 Processed dependencies!
Collecting usage statistics. To deactivate, set browser.gatherUsageStats to False.
2023-03-31 18:57:08.657 Uncaught app exception
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 565, in _run_script
exec(code, module.__dict__)
File "/app/chatbotkb/chat.py", line 71, in <module>
response = query(messages)
File "/app/chatbotkb/chat.py", line 51, in query
response = st.session_state['chat'].ask_assistant(question)
File "/app/chatbotkb/chatbot.py", line 58, in ask_assistant
if 'searching for answers' in assistant_response['content'].lower():
TypeError: string indices must be integers
2023-03-31 19:13:32.893 Uncaught app exception
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 565, in _run_script
exec(code, module.__dict__)
File "/app/chatbotkb/chat.py", line 71, in <module>
response = query(messages)
File "/app/chatbotkb/chat.py", line 51, in query
response = st.session_state['chat'].ask_assistant(question)
File "/app/chatbotkb/chatbot.py", line 58, in ask_assistant
if 'searching for answers' in assistant_response['content'].lower():
TypeError: string indices must be integers
2023-04-02 16:01:31.507 Uncaught app exception
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 565, in _run_script
exec(code, module.__dict__)
File "/app/chatbotkb/chat.py", line 71, in <module>
response = query(messages)
File "/app/chatbotkb/chat.py", line 51, in query
response = st.session_state['chat'].ask_assistant(question)
File "/app/chatbotkb/chatbot.py", line 58, in ask_assistant
if 'searching for answers' in assistant_response['content'].lower():
TypeError: string indices must be integers