Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,8 @@ import os
|
|
16 |
#from langchain.embeddings import OpenAIEmbeddings
|
17 |
|
18 |
#New import from langchain, which replaces the above
|
19 |
-
from
|
|
|
20 |
|
21 |
|
22 |
#FAISS is an open-source library developed by Facebook AI Research for efficient similarity search and clustering of large-scale datasets, particularly with high-dimensional vectors.
|
@@ -40,11 +41,11 @@ load_dotenv()
|
|
40 |
|
41 |
|
42 |
#By using st.set_page_config(), you can customize the appearance of your Streamlit application's web page
|
43 |
-
st.set_page_config(page_title="
|
44 |
st.header("Hey, Ask me something & I will give out similar things")
|
45 |
|
46 |
#Initialize the OpenAIEmbeddings object
|
47 |
-
embeddings =
|
48 |
|
49 |
#The below snippet helps us to import CSV file data for our tasks
|
50 |
from langchain.document_loaders.csv_loader import CSVLoader
|
|
|
16 |
#from langchain.embeddings import OpenAIEmbeddings
|
17 |
|
18 |
#New import from langchain, which replaces the above
|
19 |
+
from langchain_community.embeddings import HuggingFaceEmbeddings
|
20 |
+
#from langchain_openai import OpenAIEmbeddings
|
21 |
|
22 |
|
23 |
#FAISS is an open-source library developed by Facebook AI Research for efficient similarity search and clustering of large-scale datasets, particularly with high-dimensional vectors.
|
|
|
41 |
|
42 |
|
43 |
#By using st.set_page_config(), you can customize the appearance of your Streamlit application's web page
|
44 |
+
st.set_page_config(page_title="Somesh Is Educating Kids", page_icon=":robot:")
|
45 |
st.header("Hey, Ask me something & I will give out similar things")
|
46 |
|
47 |
#Initialize the OpenAIEmbeddings object
|
48 |
+
embeddings = HuggingFaceEmbeddings()
|
49 |
|
50 |
#The below snippet helps us to import CSV file data for our tasks
|
51 |
from langchain.document_loaders.csv_loader import CSVLoader
|