forked from IAHispano/Applio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgo-applio.sh
53 lines (51 loc) · 1.15 KB
/
go-applio.sh
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
#!/bin/bash
echo -e "\033]0;Applio-RVC-Fork\007"
source .venv/bin/activate
menu() {
while true; do
clear
cat << "EOF"
::: _ _
::: /\ | (_)
::: / \ _ __ _ __ | |_ ___
::: / /\ \ | '_ \| '_ \| | |/ _ \
::: / ____ \| |_) | |_) | | | (_) |
::: /_/ \_\ .__/| .__/|_|_|\___/
::: | | | |
::: |_| |_|
:::
[1] Start Applio (Nvidia/AMD Support)
[2] Start Applio (Intel GPU/CPU) Probably broken
[3] Exit
EOF
read -p "Select an option: " choice
case $choice in
1)
clear
python infer-web.py --pycmd python --port 7897 --theme dark
read -p "Press Enter to continue..."
;;
2)
clear
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/.venv/lib
python -m sklearnex infer-web.py --pycmd python --port 7897 --theme dark
read -p "Press Enter to continue..."
;;
3)
finish
;;
*)
clear
echo "Invalid option. Please enter a number from 1 to 3."
echo ""
read -n 1 -s -r -p "Press 'Enter' to access the main menu..."
;;
esac
done
}
finish() {
clear
echo "Exiting Applio..."
exit 0
}
menu