Spaces:
Build error
Build error
| import os | |
| import streamlit as st | |
| from pathlib import Path | |
| from dotenv import load_dotenv | |
| load_dotenv() | |
| def main(): | |
| STREAMLIT_PAGE_DIR = Path("client/streamlit/pages") | |
| page_files = [ | |
| # (STREAMLIT_PAGE_DIR / "interactive_story.py", dict(title="Interactive: Story mode", icon=":material/account_tree:")), | |
| # (STREAMLIT_PAGE_DIR / "interactive_story_v2.py", dict(title="Interactive: Story mode (v2)", icon=":material/account_tree:")), | |
| # (STREAMLIT_PAGE_DIR / "riddles.py", dict(title="Interactive: Riddles", icon=":material/question_mark:")), | |
| # (STREAMLIT_PAGE_DIR / "interactive_story_design.py", dict(title="Design: Story design", icon=":material/design_services:")), | |
| # (STREAMLIT_PAGE_DIR / "question_gen.py", dict(title="Design: Quiz", icon=":material/quiz:")), | |
| (STREAMLIT_PAGE_DIR / "nlu_log.py", dict(title="Log: BuddyOS interaction", icon=":material/chat:")), | |
| (STREAMLIT_PAGE_DIR / "vad_plot.py", dict(title="Log: VAD realtime analysis", icon=":material/graphic_eq:")), | |
| (STREAMLIT_PAGE_DIR / "vad_offline_analysis.py", dict(title="Log: VAD offline analysis", icon=":material/sound_detection_glass_break:")), | |
| ] | |
| pages = [] | |
| for page_file, page_params in page_files: | |
| page = st.Page(page_file, **page_params) | |
| pages.append(page) | |
| pg = st.navigation(pages) | |
| st.set_page_config(page_title="Flowbot demo", page_icon=":material/smart_toy:") | |
| pg.run() | |
| if __name__ == "__main__": | |
| main() |