face-swap-app / run.py
AdiKhanOfficial's picture
Upload 4 files
1d6a80b verified
raw
history blame contribute delete
271 Bytes
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])