import streamlit as st from multipage import save, MultiPage import pandas as pd app = MultiPage() app.next_page_button = "Next Page" app.previous_page_button = "Previous Page" def app1(): st.button("Do nothing...") if st.button("Check numbers"): var1 = 10 var2 = 5 st.write("First number: " + str(var1)) st.write('Second number: ' + str(var2)) save([var1, var2], "app1") ###### def app2(prev_vars): var1, var2 = prev_vars if st.button("Sum"): sum_var = var1 + var2 multiplication_var = 87 st.write(sum_var) save([sum_var, multiplication_var], "app2") ##### def app3(prev_vars):
from src.home import home_app from src.data import data_app from src.graphics import graphics_app from src.model import model_app from src.load_dataset import load_dataset from multipage import save, MultiPage, start_app, clear_cache st.set_page_config( page_title="Easy ML", page_icon='💙', ) app = MultiPage() # app.start_button = "Поехали!" app.navbar_name = "Навигация" app.next_page_button = "Следующая страница" app.previous_page_button = "Предыдущая страница" # Add all your application here app.add_app("README.md", home_app) app.add_app("Просмотр датасета через Pandas", data_app) app.add_app("Построение графиков", graphics_app) app.add_app("Обучение моделей", model_app) # The main app app.run()