added requirements.txt command

yeah this should fix the flask error because i forgot to put the most important command in this script
This commit is contained in:
deffcolony
2023-11-19 16:25:00 +01:00
parent 7534752cfa
commit 9f94353357
4 changed files with 48 additions and 8 deletions

View File

@@ -854,14 +854,27 @@ if /i "!confirmation!"=="Y" (
REM Navigate to the SillyTavern-extras directory
cd SillyTavern-extras
REM Install Python dependencies from requirements files
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Installing pip requirements-complete...
pip install -r requirements-complete.txt
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Installing modules from requirements.txt...
pip install -r requirements.txt
REM Provide a link to the Coqui documentation
echo %yellow_fg_strong%[DISCLAIMER] The installation of Coqui requirements is not recommended unless you have a specific use case. It may conflict with additional dependencies and functionalities to your environment.%reset%
echo %blue_fg_strong%[INFO]%reset% To learn more about Coqui, visit: https://docs.sillytavern.app/extras/installation/#decide-which-module-to-use
REM Ask the user if they want to install requirements-coqui.txt
set /p install_coqui_requirements=Do you want to install Coqui TTS? [Y/N]
REM Check the user's response
if /i "%install_coqui_requirements%"=="Y" (
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Installing pip requirements-coqui...
pip install -r requirements-coqui.txt
) else (
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]Coqui requirements installation skipped.%reset%
)
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Installing pip requirements-rvc...
pip install -r requirements-rvc.txt
echo %cyan_fg_strong%Yes, If you are seeing errors about Numpy and Librosa then that is completely normal. If facebook updates their fairseq library to python 3.11 then this error will not appear anymore.%reset%
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% %green_fg_strong%Extras installed successfully.%reset%
) else (

View File

@@ -237,8 +237,20 @@ install_st_extras() {
cd SillyTavern-extras
log_message "INFO" "Installing pip requirements-complete..."
pip install -r requirements-complete.txt
log_message "INFO" "Installing modules from requirements.txt..."
pip install -r requirements.txt
log_message "DISCLAIMER" "The installation of Coqui requirements is not recommended unless you have a specific use case. It may conflict with additional dependencies and functionalities to your environment."
log_message "INFO" "To learn more about Coqui, visit: https://docs.sillytavern.app/extras/installation/#decide-which-module-to-use"
read -p "Do you want to install Coqui TTS? [Y/N] " install_coqui_requirements
if [[ "$install_coqui_requirements" == [Yy] ]]; then
log_message "INFO" "Installing pip requirements-coqui..."
pip install -r requirements-coqui.txt
else
log_message "INFO" "Coqui requirements installation skipped."
fi
log_message "INFO" "Installing pip requirements-rvc..."
pip install -r requirements-rvc.txt

View File

@@ -208,6 +208,9 @@ git clone https://github.com/SillyTavern/SillyTavern-extras.git
REM Navigate to the SillyTavern-extras directory
cd SillyTavern-extras
echo %blue_bg%[%time%]%reset% %blue_fg_strong%[INFO]%reset% Installing modules from requirements.txt...
pip install -r requirements.txt
REM Provide a link to the Coqui documentation
echo %yellow_fg_strong%[DISCLAIMER] The installation of Coqui requirements is not recommended unless you have a specific use case. It may conflict with additional dependencies and functionalities to your environment.%reset%
echo %blue_fg_strong%[INFO]%reset% To learn more about Coqui, visit: https://docs.sillytavern.app/extras/installation/#decide-which-module-to-use

View File

@@ -586,8 +586,20 @@ reinstall_extras() {
cd SillyTavern-extras
log_message "INFO" "Installing pip requirements-complete..."
pip install -r requirements-complete.txt
log_message "INFO" "Installing modules from requirements.txt..."
pip install -r requirements.txt
log_message "DISCLAIMER" "The installation of Coqui requirements is not recommended unless you have a specific use case. It may conflict with additional dependencies and functionalities to your environment."
log_message "INFO" "To learn more about Coqui, visit: https://docs.sillytavern.app/extras/installation/#decide-which-module-to-use"
read -p "Do you want to install Coqui TTS? [Y/N] " install_coqui_requirements
if [[ "$install_coqui_requirements" == [Yy] ]]; then
log_message "INFO" "Installing pip requirements-coqui..."
pip install -r requirements-coqui.txt
else
log_message "INFO" "Coqui requirements installation skipped."
fi
log_message "INFO" "Installing pip requirements-rvc..."
pip install -r requirements-rvc.txt