Spaces:
Runtime error
Runtime error
File size: 2,992 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 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 |
@echo off
setlocal
title Applio - Start
cd %~dp0
:::
::: _ _
::: /\ | (_)
::: / \ _ __ _ __ | |_ ___
::: / /\ \ | '_ \| '_ \| | |/ _ \
::: / ____ \| |_) | |_) | | | (_) |
::: /_/ \_\ .__/| .__/|_|_|\___/
::: | | | |
::: |_| |_|
:::
:::
for /f "usebackq delims=" %%i in ("%cd%\assets\configs\version.txt") do (
set "localVersion=%%i"
)
for /f %%i in ('powershell -command "(Invoke-WebRequest -Uri 'https://raw.githubusercontent.com/IAHispano/Applio-RVC-Fork/main/assets/configs/version.txt').Content"') do set "onlineVersion=%%i"
:menu
for /f "delims=: tokens=*" %%A in ('findstr /b ":::" "%~f0"') do @echo(%%A
powershell -command "if ('%localVersion%' -lt '%onlineVersion%') { exit 1 } else { exit 0 }"
if %errorlevel% equ 1 (
echo You are currently using an outdated version %localVersion%
echo.
echo We're excited to announce that version %onlineVersion% is now available for download on https://github.com/IAHispano/Applio-RVC-Fork.
echo Upgrade now to access the latest features and improvements!
echo.
goto continue
) else (
goto continue
)
:continue
echo Runtime: Recommended for regular users
echo [1] Start Applio - Runtime ^(Nvidia Support^)
echo [2] Start Applio - Runtime ^(Intel Support. Requires Nvidia runtime^)
echo [3] Start Applio - Runtime ^(AMD Support^)
echo.
echo Dependencies: Only recommended for experienced users
echo [4] Start Applio ^(Nvidia Support^)
echo [5] Start Applio ^(AMD Support^)
echo.
echo [6] Exit
echo.
set /p choice=Select an option:
set choice=%choice: =%
if "%choice%"=="6" (
goto finish
) else if "%choice%"=="5" (
cls
echo Starting Applio with AMD support...
python infer-web.py --pycmd python --port 7897 --dml --theme dark
pause
cls
goto menu
) else if "%choice%"=="4" (
cls
echo Starting Applio with Nvidia support...
python infer-web.py --pycmd python --port 7897 --theme dark
pause
cls
goto menu
) else if "%choice%"=="3" (
cls
echo Starting Applio with runtime for AMD support ^(you must have it installed^)...
runtime\python.exe infer-web.py --pycmd runtime/python.exe --port 7897 --dml --theme dark
pause
cls
goto menu
) else if "%choice%"=="2" (
runtime\python.exe -m pip install scikit-learn-intelex
cls
echo Starting Applio with runtime for Intel CPU support ^(you must have Nvidia support installed^)...
runtime\python.exe -m sklearnex infer-web.py --pycmd runtime/python.exe --port 7897 --theme dark
pause
cls
goto menu
) else if "%choice%"=="1" (
cls
echo Starting Applio with runtime for Nvidia support ^(you must have it installed^)...
runtime\python.exe infer-web.py --pycmd runtime/python.exe --port 7897 --theme dark
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
:finish
|