-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathrun_streamlit.bat
More file actions
65 lines (57 loc) · 1.85 KB
/
run_streamlit.bat
File metadata and controls
65 lines (57 loc) · 1.85 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
64
65
@echo off
REM Aparsoft TTS - Streamlit App Launcher (Windows)
REM Quick startup script for the Streamlit management interface
echo =========================================
echo 🎙️ Aparsoft TTS - Streamlit Manager
echo =========================================
echo.
REM Check if virtual environment exists
if not exist "venv\" (
echo ❌ No virtual environment found.
echo Create one with: python -m venv venv
echo Then activate with: venv\Scripts\activate
exit /b 1
)
REM Activate virtual environment
call venv\Scripts\activate.bat
REM Check if streamlit is installed
python -c "import streamlit" 2>nul
if errorlevel 1 (
echo ❌ Streamlit not found!
echo Installing required packages...
pip install streamlit plotly pandas soundfile
)
REM Check if aparsoft_tts is installed
python -c "import aparsoft_tts" 2>nul
if errorlevel 1 (
echo ❌ aparsoft_tts not found!
echo Installing package...
pip install -e .[mcp,cli]
)
echo.
echo ✅ All dependencies ready!
echo.
echo 🚀 Starting Streamlit app...
echo URL: http://localhost:8501
echo.
echo Press Ctrl+C to stop the server
echo.
echo =========================================
REM Create required directories
if not exist "outputs\single" mkdir outputs\single
if not exist "outputs\batch" mkdir outputs\batch
if not exist "outputs\scripts" mkdir outputs\scripts
if not exist "outputs\voice_samples" mkdir outputs\voice_samples
if not exist "data" mkdir data
if not exist "config" mkdir config
if not exist "temp\scripts" mkdir temp\scripts
REM Start Streamlit
streamlit run streamlit_app.py ^
--server.port=8501 ^
--server.address=localhost ^
--server.headless=false ^
--browser.gatherUsageStats=false ^
--theme.base="light" ^
--theme.primaryColor="#667eea" ^
--theme.backgroundColor="#ffffff" ^
--theme.secondaryBackgroundColor="#f0f2f6"