Spaces:
Runtime error
Runtime error
File size: 351 Bytes
3f6af0f |
1 2 3 4 5 6 7 8 9 10 11 |
import streamlit as st
class Navigate:
def __init__(self):
self.apps = []
def add_app(self, title, func):
self.apps.append({"title": title, "function": func})
def run(self):
#st.sidebar.header("Sections")
app = st.sidebar.radio("", self.apps, format_func=lambda app: app["title"])
app["function"]() |