Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -81,7 +81,6 @@ def search():
|
|
81 |
# Output of top-3 hits from re-ranker
|
82 |
print("\n-------------------------\n")
|
83 |
print("Top-3 Cross-Encoder Re-ranker hits")
|
84 |
-
st.subheader("Top-3 Search results")
|
85 |
results = []
|
86 |
for hit in hits[:3]:
|
87 |
results.append
|
@@ -101,7 +100,7 @@ st_search_button = st.button('Search', on_click=search)
|
|
101 |
|
102 |
if 'results' not in st.session_state:
|
103 |
st.session_state.results = {}
|
104 |
-
|
105 |
if len(st.session_state.results) > 0:
|
106 |
with st.container():
|
107 |
st.subheader("Search results")
|
|
|
81 |
# Output of top-3 hits from re-ranker
|
82 |
print("\n-------------------------\n")
|
83 |
print("Top-3 Cross-Encoder Re-ranker hits")
|
|
|
84 |
results = []
|
85 |
for hit in hits[:3]:
|
86 |
results.append
|
|
|
100 |
|
101 |
if 'results' not in st.session_state:
|
102 |
st.session_state.results = {}
|
103 |
+
|
104 |
if len(st.session_state.results) > 0:
|
105 |
with st.container():
|
106 |
st.subheader("Search results")
|