mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2024-12-18 20:17:50 +00:00
fix
This commit is contained in:
parent
938281b5b9
commit
541933aade
@ -1 +1 @@
|
||||
Subproject commit fbac0b87312d153f7bc535867979b940f57c37ec
|
||||
Subproject commit 1cd958f51153caab112991e8d49cd480fd81edf1
|
@ -1 +0,0 @@
|
||||
Subproject commit 8ca6f513073eaea1db4bcd09c8b41e9f8abe2cc2
|
27
scripts/python/sd_server.py
Normal file
27
scripts/python/sd_server.py
Normal file
@ -0,0 +1,27 @@
|
||||
from lollms.paths import LollmsPaths
|
||||
from pathlib import Path
|
||||
from ascii_colors import ASCIIColors
|
||||
import subprocess
|
||||
|
||||
global_path = Path(__file__).parent.parent.parent/"global_paths_cfg.yaml"
|
||||
ASCIIColors.yellow(f"global_path: {global_path}")
|
||||
lollms_paths = LollmsPaths(global_path)
|
||||
shared_folder = lollms_paths.personal_path/"shared"
|
||||
sd_folder = shared_folder / "auto_sd"
|
||||
output_dir = lollms_paths.personal_path / "outputs/sd"
|
||||
output_dir.mkdir(parents=True, exist_ok=True)
|
||||
script_path = sd_folder / "lollms_sd.bat"
|
||||
output_folder = lollms_paths.personal_outputs_path/"audio_out"
|
||||
|
||||
ASCIIColors.red(" ")
|
||||
ASCIIColors.red(" __ _____ __ __ _____ _____ _____ ____ ")
|
||||
ASCIIColors.red("| | | | | | | | | __| | __| \ ")
|
||||
ASCIIColors.red("| |__| | | |__| |__| | | |__ | |__ | | |")
|
||||
ASCIIColors.red("|_____|_____|_____|_____|_|_|_|_____|_____|_____|____/ ")
|
||||
ASCIIColors.red(" |_____| ")
|
||||
|
||||
ASCIIColors.red(" Forked from Auto1111's Stable diffusion api")
|
||||
ASCIIColors.red(" Integration in lollms by ParisNeo using mix1009's sdwebuiapi ")
|
||||
|
||||
|
||||
subprocess.Popen(str(script_path) +" --share", cwd=sd_folder)
|
@ -7,4 +7,15 @@ global_path = Path(__file__).parent.parent.parent/"global_paths_cfg.yaml"
|
||||
ASCIIColors.yellow(f"global_path: {global_path}")
|
||||
lollms_paths = LollmsPaths(global_path)
|
||||
output_folder = lollms_paths.personal_outputs_path/"audio_out"
|
||||
|
||||
ASCIIColors.red(".____ ________ .____ .____ _____ _________ ____ __________________________________ ")
|
||||
ASCIIColors.red("| | \_____ \ | | | | / \ / _____/ \ \/ /\__ ___/\__ ___/ _____/ ")
|
||||
ASCIIColors.red("| | / | \| | | | / \ / \ \_____ \ ______ \ / | | | | \_____ \ ")
|
||||
ASCIIColors.red("| |___/ | \ |___| |___/ Y \/ \ /_____/ / \ | | | | / \ ")
|
||||
ASCIIColors.red("|_______ \_______ /_______ \_______ \____|__ /_______ / /___/\ \ |____| |____| /_______ / ")
|
||||
ASCIIColors.red(" \/ \/ \/ \/ \/ \/ \_/ \/ ")
|
||||
|
||||
ASCIIColors.red(" Forked from daswer123's XTTS server")
|
||||
ASCIIColors.red(" Integration in lollms by ParisNeo using daswer123's webapi ")
|
||||
|
||||
subprocess.Popen(["python", "-m", "xtts_api_server", "-o", f"{output_folder}", "-sf", f"{lollms_paths.custom_voices_path}"])
|
@ -34,15 +34,6 @@ echo " \:\__\ \::/ / \:\__\ \:\__\ /:/ / \::/ / "
|
||||
echo " \/__/ \/__/ \/__/ \/__/ \/__/ \/__/ "
|
||||
echo By ParisNeo
|
||||
|
||||
:retry
|
||||
echo Please specify if you want to use a GPU or CPU.
|
||||
echo *Note* that only NVidea GPUs (cuda) or AMD GPUs (rocm) are supported.
|
||||
echo A) Enable cuda GPU
|
||||
echo B) Enable ROCm compatible GPU (AMD and other GPUs) (NOT SUPPORTED UNDER WINDOWS)
|
||||
echo C) Run CPU mode
|
||||
set /p "gpuchoice=Input> "
|
||||
set gpuchoice=%gpuchoice:~0,1%
|
||||
|
||||
@rem better isolation for virtual environment
|
||||
SET "CONDA_SHLVL="
|
||||
SET PYTHONNOUSERSITE=1
|
||||
@ -86,33 +77,32 @@ if not exist "%INSTALL_ENV_DIR%\python.exe" ( echo. && echo Conda environment is
|
||||
@rem activate installer env
|
||||
call conda activate "%INSTALL_ENV_DIR%" || ( echo. && echo Conda environment activation failed. && goto end )
|
||||
|
||||
|
||||
|
||||
@rem clone the repository
|
||||
if exist lollms-webui\ (
|
||||
cd lollms-webui
|
||||
git pull
|
||||
git submodule update --init --recursive
|
||||
cd lollms-core
|
||||
pip install -e .
|
||||
cd ..
|
||||
cd utilities/safe_store
|
||||
pip install -e .
|
||||
cd ../..
|
||||
) else (
|
||||
git clone https://github.com/ParisNeo/lollms-webui.git
|
||||
cd lollms-webui
|
||||
git clone --depth 1 --recurse-submodules https://github.com/ParisNeo/lollms-webui.git
|
||||
git submodule update --init --recursive
|
||||
pause
|
||||
cd lollms-webui/lollms-core
|
||||
pip install -e .
|
||||
cd ..
|
||||
cd utilities/safe_store
|
||||
pip install -e .
|
||||
cd ../..
|
||||
)
|
||||
git submodule update --init
|
||||
cd zoos/bindings_zoo
|
||||
git checkout main
|
||||
cd ../personalities_zoo
|
||||
git checkout main
|
||||
cd ../extensions_zoo
|
||||
git checkout main
|
||||
cd ../models_zoo
|
||||
git checkout main
|
||||
|
||||
cd ../..
|
||||
|
||||
cd lollms_core
|
||||
git checkout main
|
||||
|
||||
cd ../utilities/safe_store
|
||||
git checkout main
|
||||
|
||||
cd ../..
|
||||
pip install -r requirements.txt
|
||||
|
||||
@rem create launcher
|
||||
if exist ..\win_run.bat (
|
||||
|
@ -764,8 +764,8 @@
|
||||
<td>
|
||||
<div class="flex flex-row">
|
||||
<select v-model="current_language" @change="settingsChanged=true" :disabled="!enable_voice_service">
|
||||
<option v-for="language in voice_languages" :key="language" :value="language">
|
||||
{{ language }}
|
||||
<option v-for="language in voice_languages" :key="language.key" :value="language.value">
|
||||
{{ language.key }}
|
||||
</option>
|
||||
</select>
|
||||
</div>
|
||||
@ -1921,7 +1921,8 @@ export default {
|
||||
|
||||
return {
|
||||
voices: [],
|
||||
voice_languages:{"Arabic": "ar",
|
||||
voice_languages:{
|
||||
"Arabic": "ar",
|
||||
"Brazilian Portuguese": "pt",
|
||||
"Chinese": "zh-cn",
|
||||
"Czech": "cs",
|
||||
@ -1937,7 +1938,8 @@ export default {
|
||||
"Japanese": "ja",
|
||||
"Korean": "ko",
|
||||
"Hungarian": "hu",
|
||||
"Hindi": "hi"},
|
||||
"Hindi": "hi"
|
||||
},
|
||||
binding_changed:false,
|
||||
SVGGPU:SVGGPU,
|
||||
models_zoo:[],
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit a728904ed1307199b9940000f26cf700f6d97e8e
|
||||
Subproject commit ea9afc3e5630611af10f19106ee28927dd587587
|
Loading…
Reference in New Issue
Block a user