prateekagrawal/roberta-testing
1
1"""Frameworks for running multiple Streamlit applications as a single app.2"""3import streamlit as st4 5 6class MultiApp:7 def __init__(self):8 self.apps = []9 10 def add_app(self, title, func):11 self.apps.append({"title": title, "function": func})12 13 def run(self):14 st.sidebar.header("Navigation")15 app = st.sidebar.selectbox("", self.apps, format_func=lambda app: app["title"])16 17 app["function"]()18 19 