JPBianchi commited on
Commit
476fd04
1 Parent(s): 5313c77

added 'key' to alpha_inputs sliders

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -264,7 +264,7 @@ def main():
264
 
265
  hybrid_search = st.toggle('Hybrid Search', True)
266
  if hybrid_search:
267
- alpha_input = st.slider(label='Alpha',min_value=0.00, max_value=1.00, value=0.40, step=0.05)
268
  retrieval_limit = st.slider(label='Hybrid Search Results', min_value=10, max_value=300, value=10, step=10)
269
 
270
  hybrid_filter = st.toggle('Filter Search using Guest name', True) # i.e. look only at guests' data
@@ -350,7 +350,7 @@ def main():
350
  show_metrics = st.button('Show Metrics on Golden set')
351
  if show_metrics:
352
  # we must add it because the hybrid search toggle could hide it
353
- alpha_input2 = st.slider(label='Alpha',min_value=0.00, max_value=1.00, value=0.40, step=0.05)
354
 
355
  # _, center, _ = st.columns([3, 5, 3])
356
  # with center:
 
264
 
265
  hybrid_search = st.toggle('Hybrid Search', True)
266
  if hybrid_search:
267
+ alpha_input = st.slider(label='Alpha',min_value=0.00, max_value=1.00, value=0.40, step=0.05, key=1)
268
  retrieval_limit = st.slider(label='Hybrid Search Results', min_value=10, max_value=300, value=10, step=10)
269
 
270
  hybrid_filter = st.toggle('Filter Search using Guest name', True) # i.e. look only at guests' data
 
350
  show_metrics = st.button('Show Metrics on Golden set')
351
  if show_metrics:
352
  # we must add it because the hybrid search toggle could hide it
353
+ alpha_input2 = st.slider(label='Alpha',min_value=0.00, max_value=1.00, value=0.40, step=0.05, key=2)
354
 
355
  # _, center, _ = st.columns([3, 5, 3])
356
  # with center: