Mattral commited on
Commit
9785644
·
verified ·
1 Parent(s): 8881f50

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -1,9 +1,8 @@
1
  import os
2
  import subprocess
3
 
4
- # Set the directory path of runner.py inside the 'app' folder
5
- app_dir = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'app')
6
- runner_path = os.path.join(app_dir, 'runner.py')
7
 
8
- # Run runner.py using its directory path
9
- subprocess.run(["python", runner_path], cwd=app_dir)
 
1
  import os
2
  import subprocess
3
 
4
+ # Path to FinalApp.py inside the 'app' folder
5
+ final_app_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'app', 'FinalApp.py')
 
6
 
7
+ # Run FinalApp.py directly
8
+ subprocess.run(["streamlit", "run", final_app_path])