Spaces:
Build error
Build error
talexm commited on
Commit ·
09f8d8a
1
Parent(s): fb752bf
update
Browse files
app.py
CHANGED
|
@@ -71,7 +71,7 @@ st.subheader("Query Files")
|
|
| 71 |
# Initialize DocumentRetriever
|
| 72 |
retriever = DocumentRetriever()
|
| 73 |
|
| 74 |
-
@st.
|
| 75 |
def load_retriever():
|
| 76 |
"""Load documents into the retriever."""
|
| 77 |
retriever.load_documents()
|
|
|
|
| 71 |
# Initialize DocumentRetriever
|
| 72 |
retriever = DocumentRetriever()
|
| 73 |
|
| 74 |
+
@st.cache_resource(allow_output_mutation=True)
|
| 75 |
def load_retriever():
|
| 76 |
"""Load documents into the retriever."""
|
| 77 |
retriever.load_documents()
|