Spaces:
Runtime error
Runtime error
minor
Browse files
app.py
CHANGED
@@ -180,7 +180,7 @@ def start_haystack():
|
|
180 |
pipe = start_haystack()
|
181 |
|
182 |
@st.cache_resource
|
183 |
-
def check_statement(
|
184 |
"""Run query and verify statement"""
|
185 |
params = {"retriever": {"top_k": retriever_top_k}}
|
186 |
return pipe.run(statement, params=params)
|
|
|
180 |
pipe = start_haystack()
|
181 |
|
182 |
@st.cache_resource
|
183 |
+
def check_statement(statement: str, retriever_top_k: int = 5):
|
184 |
"""Run query and verify statement"""
|
185 |
params = {"retriever": {"top_k": retriever_top_k}}
|
186 |
return pipe.run(statement, params=params)
|