Download pixelpal.sh from afnan007/PixelPal: direct link, hf CLI and curl.
- Browser
- Download file 918 Bytes
-
https://huggingface.co/afnan007/PixelPal/resolve/main/pixelpal.sh
- Command line
-
hf download hf://afnan007/PixelPal/pixelpal.sh
-
curl -L -o pixelpal.sh https://huggingface.co/afnan007/PixelPal/resolve/main/pixelpal.sh
918 Bytes
| # Check if gnome-terminal is available | |
| if command -v gnome-terminal &> /dev/null; then | |
| # Open a new terminal and execute the first command | |
| gnome-terminal --tab --title="Chat 1" --command="bash -c 'python3 source/firefox_server.py --port 5001 --profile /tmp/chat1'" | |
| # Open another terminal and execute the second command | |
| gnome-terminal --tab --title="Chat 2" --command="bash -c 'python3 source/firefox_server.py --port 5002 --profile /tmp/chat2'" | |
| else | |
| # gnome-terminal is not available, use mate-terminal instead | |
| # Open a new terminal and execute the first command | |
| mate-terminal --title="Chat 1" -e "bash -c 'python3 source/firefox_server.py --port 5001 --profile /tmp/chat1'" | |
| # Open another terminal and execute the second command | |
| mate-terminal --title="Chat 2" -e "bash -c 'python3 source/firefox_server.py --port 5002 --profile /tmp/chat2'" | |
| fi | |
| python3 source/gpt_autoscript.py && fg | |