import os

# ch01
py_file = '1-21-2.py'

def run_streamlit_app():
    # 建立 Streamlit 應用的命令
    command = 'streamlit run ' + py_file
    # 執行 streamlit run 命令
    os.system(command)

if __name__ == '__main__':
    run_streamlit_app()