Update app.py
Browse files
app.py
CHANGED
@@ -73,16 +73,13 @@ def main():
|
|
73 |
loading_dataset_text.text("Loading Dataset...")
|
74 |
loading_dataset_bar = st.progress(0)
|
75 |
|
76 |
-
# Memory profiling
|
77 |
-
mem_usage = memory_usage((load_dataset_with_limit, (dataset_name, st.session_state.dataset_number, st.session_state.search_in_small_objects), {"limit": dataset_limit}))
|
78 |
-
st.write(f"Memory used for loading the dataset: {mem_usage[-1]:.2f} MB")
|
79 |
|
80 |
# Simulate dataset loading progress
|
81 |
for i in range(0, 100, 25):
|
82 |
time.sleep(0.2) # Simulate work being done
|
83 |
loading_dataset_bar.progress(i + 25)
|
84 |
|
85 |
-
# Load dataset
|
86 |
df, total_rows = load_dataset_with_limit(dataset_name, st.session_state.dataset_number, st.session_state.search_in_small_objects, limit=dataset_limit)
|
87 |
|
88 |
# Store loaded dataset in session state
|
|
|
73 |
loading_dataset_text.text("Loading Dataset...")
|
74 |
loading_dataset_bar = st.progress(0)
|
75 |
|
|
|
|
|
|
|
76 |
|
77 |
# Simulate dataset loading progress
|
78 |
for i in range(0, 100, 25):
|
79 |
time.sleep(0.2) # Simulate work being done
|
80 |
loading_dataset_bar.progress(i + 25)
|
81 |
|
82 |
+
# Load dataset
|
83 |
df, total_rows = load_dataset_with_limit(dataset_name, st.session_state.dataset_number, st.session_state.search_in_small_objects, limit=dataset_limit)
|
84 |
|
85 |
# Store loaded dataset in session state
|