Spaces:
Sleeping
Sleeping
import os | |
import subprocess | |
# Set the directory path of runner.py inside the 'app' folder | |
app_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 path | |
subprocess.run(["python", runner_path], cwd=app_dir) | |