Skip to content

Commit fb3ea78

Browse files
committed
Replace deprecated switch_page function with st.switch_page for navigation
1 parent 98a0dbe commit fb3ea78

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

app/0_💾_⠀Upload_Data.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
from static import altair_plots as plots
1111
from static import texts, utils
1212
from static.sample_data import data
13-
from streamlit_extras.switch_page_button import switch_page
1413

1514
import beatmap as bt
1615

@@ -64,7 +63,7 @@ def fetch_bet_results(isotherm_data):
6463
st.success("Sample data loaded!")
6564

6665
if st.button("Analyze"):
67-
switch_page("⠀beatmap analysis")
66+
st.switch_page("pages/1_🧪_⠀BEaTmap_Analysis.py")
6867

6968
if file:
7069
state.df = pd.read_csv(file)
@@ -88,4 +87,3 @@ def fetch_bet_results(isotherm_data):
8887
plots.plot_isotherm_data(state.isotherm_data)
8988
with tabs[1]:
9089
st.dataframe(state.isotherm_data.iso_df)
91-

0 commit comments

Comments
 (0)