Spaces:
Sleeping
Sleeping
Update app.py
Browse files123456789import osimport subprocess# Set the directory path of runner.py inside the 'app' folderapp_dir = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'app')runner_path = os.path.join(app_dir, 'runner.py')# Run runner.py using its directory pathsubprocess.run(["python", runner_path], cwd=app_dir)12345678import osimport subprocess# Path to FinalApp.py inside the 'app' folderfinal_app_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'app', 'FinalApp.py')# Run FinalApp.py directlysubprocess.run(["streamlit", "run", final_app_path])
app.py+4-5