TypeError: 'NoneType' object is not callable
Traceback:
File "C:\Users\2021\anaconda3\Lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 534, in _run_script
exec(code, module.dict)
File "E:\project_LLM\my_project_LLM\Chat with multiple PDFS\app.py", line 114, in
main()
File "E:\project_LLM\my_project_LLM\Chat with multiple PDFS\app.py", line 85, in main
handle_userinput(user_question)
File "E:\project_LLM\my_project_LLM\Chat with multiple PDFS\app.py", line 57, in handle_userinput
response = st.session_state.conversation({'question': user_question})
TypeError: 'NoneType' object is not callable Traceback: File "C:\Users\2021\anaconda3\Lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 534, in _run_script exec(code, module.dict) File "E:\project_LLM\my_project_LLM\Chat with multiple PDFS\app.py", line 114, in
main()
File "E:\project_LLM\my_project_LLM\Chat with multiple PDFS\app.py", line 85, in main
handle_userinput(user_question)
File "E:\project_LLM\my_project_LLM\Chat with multiple PDFS\app.py", line 57, in handle_userinput
response = st.session_state.conversation({'question': user_question})