Spaces:
Sleeping
Sleeping
Stefano Fiorucci
commited on
Commit
·
429cb7c
1
Parent(s):
a4b6b18
no cache for the moment
Browse files
app.py
CHANGED
@@ -56,7 +56,7 @@ def set_state_if_absent(key, value):
|
|
56 |
st.session_state[key] = value
|
57 |
|
58 |
# hash_funcs={builtins.weakref: my_hash_func}
|
59 |
-
@st.cache(persist=True, hash_funcs={"builtins.weakref": lambda _: None}, allow_output_mutation=True)
|
60 |
def query(pipe, question, retriever_top_k=10, reader_top_k=5) -> dict:
|
61 |
"""Run query and get answers"""
|
62 |
return (pipe.run(question,
|
|
|
56 |
st.session_state[key] = value
|
57 |
|
58 |
# hash_funcs={builtins.weakref: my_hash_func}
|
59 |
+
# @st.cache(persist=True, hash_funcs={"builtins.weakref": lambda _: None}, allow_output_mutation=True)
|
60 |
def query(pipe, question, retriever_top_k=10, reader_top_k=5) -> dict:
|
61 |
"""Run query and get answers"""
|
62 |
return (pipe.run(question,
|