File size: 1,859 Bytes
df34f1e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
@echo off
setlocal
title Start Applio

:::
:::                       _ _
:::     /\               | (_)
:::    /  \   _ __  _ __ | |_  ___
:::   / /\ \ | '_ \| '_ \| | |/ _ \
:::  / ____ \| |_) | |_) | | | (_) |
::: /_/    \_\ .__/| .__/|_|_|\___/
:::          | |   | |
:::          |_|   |_|
:::
:::

:menu
for /f "delims=: tokens=*" %%A in ('findstr /b ":::" "%~f0"') do @echo(%%A

echo [1] Start Applio
echo [2] Start Applio (DML)
echo [3] Start Realtime GUI (DML)
echo [4] Start Realtime GUI (V0)
echo [5] Start Realtime GUI (V1)
echo.

set /p choice=Select an option: 
set choice=%choice: =%

cls
echo WARNING: It's recommended to disable antivirus or firewall, as errors might occur when starting the ssl.
pause

if "%choice%"=="1" (
    cls
    echo WARNING: At this point, it's recommended to disable antivirus or firewall, as errors might occur when downloading pretrained models.
    pause>null
    echo Starting Applio...
    echo.
    runtime\python.exe infer-web.py --pycmd runtime\python.exe --port 7897
    pause
    cls
    goto menu
)

if "%choice%"=="2" (
    cls
    echo Starting Applio ^(DML^)...
    echo.
    runtime\python.exe infer-web.py --pycmd runtime\python.exe --port 7897 --dml
    pause
    cls
    goto menu
)

if "%choice%"=="3" (
    cls
    echo Starting Realtime GUI ^(DML^)...
    echo.
    runtime\python.exe gui_v1.py --pycmd runtime\python.exe --dml
    pause
    cls
    goto menu
)

if "%choice%"=="4" (
    cls
    echo Starting Realtime GUI ^(V0^)...
    echo.
    runtime\python.exe gui_v0.py
    pause
    cls
    goto menu
)

if "%choice%"=="5" (
    cls
    echo Starting Realtime GUI ^(V1^)...
    echo.
    runtime\python.exe gui_v1.py
    pause
    cls
    goto menu
)

cls
echo Invalid option. Please enter a number from 1 to 5.
echo.
echo Press 'Enter' to access the main menu...
pause>nul
cls
goto menu