Spaces:
Sleeping
Sleeping
Commit
·
b29d492
1
Parent(s):
6115320
Update app.py
Browse files
app.py
CHANGED
@@ -27,7 +27,7 @@ maxtags_sidebar = st.sidebar.slider('Number of expanded queries?', 1, 20, 1, key
|
|
27 |
# maxtags=maxtags_sidebar,
|
28 |
# key="aljnf")
|
29 |
|
30 |
-
user_query = st.text_input("Enter
|
31 |
|
32 |
# Add selectbox in streamlit
|
33 |
option1 = st.sidebar.selectbox(
|
@@ -244,7 +244,7 @@ def re_rank_candidates(query, candidates, method):
|
|
244 |
|
245 |
|
246 |
# st.write("## Raw Candidates:")
|
247 |
-
if st.button('
|
248 |
col1, col2 = st.columns(2)
|
249 |
candidates = generate_query_expansion_candidates(query = user_query)
|
250 |
|
|
|
27 |
# maxtags=maxtags_sidebar,
|
28 |
# key="aljnf")
|
29 |
|
30 |
+
user_query = st.text_input("Enter the orignal query for inspiration: e.g., gift, home decoration ...")
|
31 |
|
32 |
# Add selectbox in streamlit
|
33 |
option1 = st.sidebar.selectbox(
|
|
|
244 |
|
245 |
|
246 |
# st.write("## Raw Candidates:")
|
247 |
+
if st.button('Generate Expansion'):
|
248 |
col1, col2 = st.columns(2)
|
249 |
candidates = generate_query_expansion_candidates(query = user_query)
|
250 |
|