1 Star 0 Fork 2

王岩/fish-speech

forked from ruby11dog/fish-speech 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
start.bat 1.47 KB
一键复制 编辑 原始数据 按行查看 历史
spicysama 提交于 2024-05-18 10:51 . Available in win10 (#225)
@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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wangyan1123/fish-speech.git
git@gitee.com:wangyan1123/fish-speech.git
wangyan1123
fish-speech
fish-speech
main

搜索帮助

0d507c66 1850385 C8b1a773 1850385