Update app.py
Browse files
app.py
CHANGED
@@ -151,18 +151,10 @@ def display_as_table(model, top_k, score='score'):
|
|
151 |
|
152 |
# Streamlit App
|
153 |
|
154 |
-
st.title("
|
155 |
|
156 |
-
window_size = st.sidebar.slider("Paragraph Window Size", min_value=1, max_value=10, value=3, key=
|
157 |
-
'slider')
|
158 |
|
159 |
-
|
160 |
-
|
161 |
-
top_k = st.sidebar.slider("Number of Top Hits Generated", min_value=1, max_value=5, value=2)
|
162 |
-
|
163 |
-
|
164 |
-
# This function will search all wikipedia articles for passages that
|
165 |
-
# answer the query
|
166 |
def search_func(query, top_k=top_k):
|
167 |
global bi_encoder, cross_encoder
|
168 |
|
|
|
151 |
|
152 |
# Streamlit App
|
153 |
|
154 |
+
st.title("Search with Retrieve & Rerank")
|
155 |
|
|
|
|
|
156 |
|
157 |
+
# This function will search all wikipedia articles for passages that answer the query
|
|
|
|
|
|
|
|
|
|
|
|
|
158 |
def search_func(query, top_k=top_k):
|
159 |
global bi_encoder, cross_encoder
|
160 |
|