forked from resemble-ai/chatterbox
-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathlaunch_huggingface.bat
More file actions
63 lines (56 loc) · 2.04 KB
/
launch_huggingface.bat
File metadata and controls
63 lines (56 loc) · 2.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
@echo off
setlocal
rem Performance and Debugging Section
rem =================================
rem Enable CUDA_LAUNCH_BLOCKING for detailed error reports, but it hurts performance.
rem set "CUDA_LAUNCH_BLOCKING=1"
rem set "TORCH_USE_CUDA_DSA=1"
echo Checking for virtual environment...
if not exist "venv\Scripts\activate.bat" (
echo ERROR: Virtual environment not found!
echo Please run install.bat first to set up the environment.
echo.
echo Make sure you're in the chatterbox repository directory.
pause
exit /b 1
)
echo Checking repository structure...
if not exist "gradio_tts_app_audiobook.py" (
echo ERROR: gradio_tts_app_audiobook.py not found!
echo Please make sure you're in the chatterbox repository root.
pause
exit /b 1
)
echo Activating virtual environment...
call venv\Scripts\activate.bat
echo.
echo Starting Chatterbox TTS Audiobook Edition (PUBLIC SHARING MODE)...
echo Features: Voice Library, Character Management, Audiobook Tools
echo Audio Cleaning Available in "Clean Samples" Tab
echo.
echo SECURITY MODE: PUBLIC SHARING ENABLED
echo - Accessible from anywhere via temporary public URL
echo - ⚠️ WARNING: Your application will be publicly accessible!
echo - ⚠️ Anyone with the link can access your voice library!
echo - ⚠️ Use only for demonstration or temporary sharing!
echo - Public URL will be displayed when ready
echo.
echo This may take a moment to load the models...
echo.
echo Current directory: %CD%
echo Python environment: %VIRTUAL_ENV%
echo Voice library will be created at: %CD%\voice_library
echo.
python gradio_tts_app_audiobook.py
echo.
echo Chatterbox TTS Audiobook Edition (PUBLIC SHARING) has stopped.
echo Deactivating virtual environment...
deactivate
echo.
echo Thanks for using Chatterbox TTS Audiobook Edition! 🎧✨
echo Your voice profiles are saved in the voice_library folder.
echo Audio cleaning features are in the "Clean Samples" tab!
echo.
echo ⚠️ Remember: Your session was publicly accessible!
echo ⚠️ Make sure you're comfortable with what was shared!
pause