Update app.py
Browse files
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 |
-
|
67 |
-
|
|
|
|
|
|
|
|
|
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"):
|