File size: 1,737 Bytes
3b7b011 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 |
#!/bin/bash
echo -e "\033]0;Applio - Installer\007"
source .venv/bin/activate
clear
menu1() {
while true; do
clear
echo " :::"
echo " ::: _ _ "
echo " ::: /\ | (_) "
echo " ::: / \ _ __ _ __ | |_ ___ "
echo " ::: / /\ \ | '_ \| '_ \| | |/ _ \ "
echo " ::: / ____ \| |_) | |_) | | | (_) | "
echo " ::: /_/ \_\ .__/| .__/|_|_|\___/ "
echo " ::: | | | | "
echo " ::: |_| |_| "
echo " ::: "
echo " ::: "
echo
echo "[1] Uninstall Applio"
echo "[2] Update Applio"
echo "[3] Update Applio + Dependencies"
echo "[4] Fix Tensorboard"
echo
read -p "Select an option: " choice1
case $choice1 in
1)
pip uninstall -r assets/requirements/requirements-dml* -y
pip uninstall -r assets/requirements/requirements-ipex* -y
pip uninstall -r https://raw.githubusercontent.com/WorXeN/Retrieval-based-Voice-Conversion-WebUI/main/requirements-amd.txt -y
pip uninstall -r assets/requirements/requirements-realtime-vc.txt -y
cd .. && rm -rf *Applio*
finish1
;;
2)
git pull
finish1
;;
3)
git pull
./install_Applio.sh
finish1
;;
4)
python3.9 -m pip uninstall tb-nightly tensorboardX tensorboard
python3.9 -m pip install tensorboard
cls
echo Tensorboard re-installed correctly!
read -p "Press Enter to access the main menu..."
finish1
;;
*)
echo "Invalid option. Please enter a number from 1 to 4."
echo ""
read -p "Press Enter to access the main menu..."
;;
esac
done
}
# Finish this thing
finish1() {
clear
echo "Goodbye!"
}
# Loop to the main menu
menu1
|