Spaces:
Sleeping
Sleeping
Download app.py from bumblebee100/NEMKAI56.0: direct link, hf CLI and curl.
- Browser
- Download file 553 Bytes
-
https://huggingface.co/spaces/bumblebee100/NEMKAI56.0/resolve/main/app.py
- Command line
-
hf download hf://spaces/bumblebee100/NEMKAI56.0/app.py
-
curl -L -o app.py https://huggingface.co/spaces/bumblebee100/NEMKAI56.0/resolve/main/app.py
553 Bytes
| import subprocess | |
| import time | |
| # Define the commands to run | |
| command1 = ["python3", "-m", "http.server", "7860"] | |
| command2 = ["qemu-system-x86_64", "kali-linux.iso"] | |
| # Start the first process | |
| process1 = subprocess.Popen(command1) | |
| # Start the second process | |
| process2 = subprocess.Popen(command2) | |
| # Wait for both processes to complete (optional) | |
| try: | |
| process1.wait() | |
| process2.wait() | |
| except KeyboardInterrupt: | |
| # Handle Ctrl+C to terminate both processes | |
| process1.terminate() | |
| process2.terminate() | |
| process1.wait() | |
| process2.wait() |