Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -25,7 +25,7 @@ def result_html(result):
|
|
25 |
|
26 |
|
27 |
discussion = st.selectbox(
|
28 |
-
'
|
29 |
index_locations.keys())
|
30 |
searcher = LuceneSearcher(index_locations[discussion])
|
31 |
searcher.set_rm3()
|
@@ -46,7 +46,7 @@ with col2:
|
|
46 |
|
47 |
|
48 |
if search_query or button_clicked:
|
49 |
-
search_results = searcher.search(
|
50 |
for result in search_results:
|
51 |
st.write(result_html(result), unsafe_allow_html=True)
|
52 |
|
|
|
25 |
|
26 |
|
27 |
discussion = st.selectbox(
|
28 |
+
'Choose discussion',
|
29 |
index_locations.keys())
|
30 |
searcher = LuceneSearcher(index_locations[discussion])
|
31 |
searcher.set_rm3()
|
|
|
46 |
|
47 |
|
48 |
if search_query or button_clicked:
|
49 |
+
search_results = searcher.search(search_query, k=10)
|
50 |
for result in search_results:
|
51 |
st.write(result_html(result), unsafe_allow_html=True)
|
52 |
|