代码拉取完成,页面将自动刷新
同步操作将从 ruby11dog/fish-speech 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
@echo off
chcp 65001
set PYTHONPATH=%~dp0
set PYTHON_CMD=%cd%\fishenv\env\python
set API_FLAG_PATH=%~dp0API_FLAGS.txt
set no_proxy="localhost, 127.0.0.1, 0.0.0.0"
set HF_ENDPOINT=https://hf-mirror.com
%PYTHON_CMD% .\tools\download_models.py
setlocal enabledelayedexpansion
set "API_FLAGS="
set "flags="
if exist "%API_FLAG_PATH%" (
for /f "usebackq tokens=*" %%a in ("%API_FLAG_PATH%") do (
set "line=%%a"
if not "!line:~0,1!"=="#" (
set "line=!line: =<SPACE>!"
set "line=!line:\=!"
set "line=!line:<SPACE>= !"
if not "!line!"=="" (
set "API_FLAGS=!API_FLAGS!!line! "
)
)
)
)
if not "!API_FLAGS!"=="" set "API_FLAGS=!API_FLAGS:~0,-1!"
set "flags="
echo !API_FLAGS! | findstr /C:"--api" >nul 2>&1
if !errorlevel! equ 0 (
echo.
echo Start HTTP API...
set "mode=api"
goto process_flags
)
echo !API_FLAGS! | findstr /C:"--infer" >nul 2>&1
if !errorlevel! equ 0 (
echo.
echo Start WebUI Inference...
set "mode=infer"
goto process_flags
)
:process_flags
for %%p in (!API_FLAGS!) do (
if not "%%p"=="--!mode!" (
set "flags=!flags! %%p"
)
)
if not "!flags!"=="" set "flags=!flags:~1!"
echo Debug: flags = !flags!
if "!mode!"=="api" (
%PYTHON_CMD% -m tools.api !flags!
) else if "!mode!"=="infer" (
%PYTHON_CMD% -m tools.webui !flags!
)
echo.
echo Next launch the page...
%PYTHON_CMD% fish_speech\webui\manage.py
:end
endlocal
pause
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。