error while querying

#1
by aadhiya - opened

TypeError: 'NoneType' object is not callable
Traceback:
File "C:\Users\nemo\AppData\Local\Programs\Python\Python310\lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 534, in _run_script
exec(code, module.dict)
File "C:\Users\nemo\Desktop\Query-PDF-main\app.py", line 201, in
main()
File "C:\Users\nemo\Desktop\Query-PDF-main\app.py", line 178, in main
handle_userinput(user_question)
File "C:\Users\nemo\Desktop\Query-PDF-main\app.py", line 131, in handle_userinput
response = st.session_state.conversation({"question": user_question})

Thank you for the feedback. I will look into this. But, superficially always give the Huggingface token and press Enter so that the credentials are acknowledged as a start.

I figured this is an issue with the session state for streamlit. At the moment, the quick fix would be entering your token pressing enter. Then allowing the document to be processed then asking your question..

Skier8402 changed discussion status to closed

Sign up or log in to comment