hwchase17/notion-qa

Error when trying to deploy app on Streamlit (pydantic.error_wrappers.ValidationError)

rishabhjindal45 opened this issue · 1 comments

Getting the following error when trying to deploy app on streamlit

pydantic.error_wrappers.ValidationError

Traceback:
File "/home/appuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 552, in _run_script
exec(code, module.dict)
File "/app/notion-qa/main.py", line 16, in
chain = VectorDBQAWithSourcesChain.from_llm(llm=OpenAI(temperature=0), vectorstore=store)
File "pydantic/main.py", line 341, in pydantic.main.BaseModel._init

Anyone know how to resolve this?

I forgot to add the Open AI API Key in streamlit, rookie mistake. Closing issue :)