Error while using pickle

Hi everyone,

I have some problems while building a chatbot for notion by Streamlit. The warning on pickle line. I have tried many solutions on the internet but still failed.
Here is my app:
https://notion-app-8jvgdze2ggzbbvxperjerw.streamlit.app/

my requirements.txt

openai
langchain
faiss-cpu
tiktoken
streamlit_chat
streamlit==1.3.0
scikit-learn==0.24.2
pandas
scikit-learn
pickle-mixin

my packages.txt

freeglut3-dev
libgtk2.0-dev
libgl1-mesa-glx

Here is my github repo:

Thanks for your help!

According to my knowledge pickle-mixin is not required. Just remove that and reboot the app once. I’m not sure whether it will work or not !! Could you provide more details of error of your app? Because your app is in private mode so I can’t access your app.

Hi Guna, thanks for your answer.

I have fixed my code but still get the error when deploying the question

This is my repo:

Thank you

According to my observation it’s openai authentication error and also error related to the data lekakge. So do the following:-

In your app cloud dashboard got to settings and navigate to the secrets. Then follow the following style of code in that as follows:-

openai=‘xxxxxx’

In your app.py file:-

Just follow like above.

Happy Streamlit-ing :balloon: