hwchase17 / notion-qa

MIT License
2.13k stars 374 forks source link

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

Closed rishabhjindal45 closed 1 year ago

rishabhjindal45 commented 1 year ago

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?

rishabhjindal45 commented 1 year ago

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