Spaces:
Paused
Paused
Carlosito16
commited on
Commit
•
e29cf0b
1
Parent(s):
8421d14
Update app.py
Browse files
app.py
CHANGED
@@ -26,7 +26,7 @@ st.markdown("# Hello")
|
|
26 |
|
27 |
@st.cache_data
|
28 |
def load_scraped_web_info():
|
29 |
-
with open("
|
30 |
ait_web_documents = pickle.load(fp)
|
31 |
|
32 |
|
@@ -78,3 +78,6 @@ def retrieve_document(query_input):
|
|
78 |
output = st.text_area(label = "Here is the relevant documents",
|
79 |
value = retrieve_document(query_input))
|
80 |
|
|
|
|
|
|
|
|
26 |
|
27 |
@st.cache_data
|
28 |
def load_scraped_web_info():
|
29 |
+
with open("ait-web-document", "rb") as fp:
|
30 |
ait_web_documents = pickle.load(fp)
|
31 |
|
32 |
|
|
|
78 |
output = st.text_area(label = "Here is the relevant documents",
|
79 |
value = retrieve_document(query_input))
|
80 |
|
81 |
+
|
82 |
+
faiss_retriever = vector_database.as_retriever()
|
83 |
+
print("Succesfully had FAISS as retriever")
|