File size: 271 Bytes
2e9d520 | 1 2 3 4 5 6 7 8 9 10 11 | import os
import sys
import subprocess
# Define the path to the Streamlit app
script_path = os.path.join(os.path.dirname(__file__), 'app.py')
# Run the Streamlit app
if __name__ == "__main__":
subprocess.run([sys.executable, "-m", "streamlit", "run", script_path])
|