ModuleNotFoundError: No module named 'faiss'

Hi,

I am a newbie and am trying to upload my app on streamlit cloud. My app is working fine on my local computer, but when I upload to Streamlit cloud, I get the following error while importing FAISS module.

In Github, I have included the below packages in requirements.txt:

langchain==0.0.256
openai==0.27.8
openapi-schema-pydantic==1.2.4
PyPDF2==3.0.1
tiktoken==0.4.0
FAISS-cpu==1.7.4
streamlit==1.25.0

Can someone please help as to how I can get this to work on streamlit colud.

Thanks in advance !!

I have an app with similar packages and it works fine in my deployed app. Have a look at my requirements.txt. Maybe because you wrote faiss in uppercase?

openai
langchain
faiss-cpu
tiktoken

I tried changing it to lowercase, but still getting the same error

Below is the screenshot of requirements.txt

It worked - I made the below changes to requirements.txt

Thank you so much for your help !

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.