Spaces:
Runtime error
Runtime error
Download run.py from XaraMargot/face-swap-app01: direct link, hf CLI and curl.
- Browser
- Download file 271 Bytes
-
https://huggingface.co/spaces/XaraMargot/face-swap-app01/resolve/main/run.py
- Command line
-
hf download hf://spaces/XaraMargot/face-swap-app01/run.py
-
curl -L -o run.py https://huggingface.co/spaces/XaraMargot/face-swap-app01/resolve/main/run.py
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]) | |