inie2003 commited on
Commit
40a7e4d
·
verified ·
1 Parent(s): 35ebc14

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -3
app.py CHANGED
@@ -62,9 +62,13 @@ def main():
62
  st.text("Small Object Search Disabled")
63
  st.session_state.dataset_number = st.selectbox("Select Subset of Data", list(range(1, selection[dataset_name][0] + 1)))
64
  st.text(f"You have selected Main Dataset {st.session_state.dataset_number}")
65
-
66
- dataset_limit = st.slider("Size of Dataset to be searched from", min_value=1000, max_value=30000, value=10000)
67
- st.text(f'The smaller the dataset the faster the search will work.')
 
 
 
 
68
 
69
  # Load dataset with limit only if not already loaded
70
  if st.button("Load Dataset"):
 
62
  st.text("Small Object Search Disabled")
63
  st.session_state.dataset_number = st.selectbox("Select Subset of Data", list(range(1, selection[dataset_name][0] + 1)))
64
  st.text(f"You have selected Main Dataset {st.session_state.dataset_number}")
65
+ if 'MajorTom' in dataset_name:
66
+ df, total_rows = load_dataset_with_limit(dataset_name, st.session_state.dataset_number, st.session_state.search_in_small_objects, limit=1)
67
+ dataset_limit = st.slider("Size of Dataset to be searched from", min_value=1000, max_value=total_rows, value=1500)
68
+ st.text(f'The smaller the dataset the faster the search will work.')
69
+ else:
70
+ dataset_limit = st.slider("Size of Dataset to be searched from", min_value=1000, max_value=30000, value=10000)
71
+ st.text(f'The smaller the dataset the faster the search will work.')
72
 
73
  # Load dataset with limit only if not already loaded
74
  if st.button("Load Dataset"):