Small reload change

This commit is contained in:
Jarod Mica 2023-12-17 17:42:42 -08:00
parent d9f34b6c1e
commit 09acc1a1d8
4 changed files with 10 additions and 2 deletions

1
modules/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
bitsandbytes-windows/

View file

@ -4,3 +4,5 @@ git clone https://github.com/JarodMica/bitsandbytes-windows.git .\modules\bitsan
xcopy .\modules\bitsandbytes-windows\bin\* .\venv\Lib\site-packages\bitsandbytes\. /Y
xcopy .\modules\bitsandbytes-windows\bin\cuda_setup\* .\venv\Lib\site-packages\bitsandbytes\cuda_setup\. /Y
xcopy .\modules\bitsandbytes-windows\bin\nn\* .\venv\Lib\site-packages\bitsandbytes\nn\. /Y
pause

View file

@ -10,6 +10,7 @@ python -m pip install -e .\modules\tortoise-tts\
python -m pip install -r .\modules\dlas\requirements.txt
python -m pip install -e .\modules\dlas\
python -m pip install -r .\requirements.txt
python -m pip install deepspeed-0.8.3+6eca037c-cp39-cp39-win_amd64.whl
# setup BnB
.\setup-cuda-bnb.bat

View file

@ -3724,8 +3724,12 @@ def unload_tts():
do_gc()
def reload_tts():
unload_tts()
load_tts()
subprocess.Popen(["start.bat"])
with open("reload_flag.txt", "w") as f:
f.write("reload")
os.kill(os.getpid(), signal.SIGTERM) # Or signal.SIGKILL for an even harder kill
# unload_tts()
# load_tts()
def get_current_voice():
global current_voice