-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart_windows.bat
More file actions
75 lines (68 loc) · 1.88 KB
/
start_windows.bat
File metadata and controls
75 lines (68 loc) · 1.88 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
66
67
68
69
70
71
72
73
74
75
@echo off
echo ========================================
echo Starting Whisper Transcriber
echo ========================================
echo.
REM Check if virtual environment exists
if not exist venv (
echo ERROR: Virtual environment not found
echo.
echo Please run install_windows.bat first to install the application
echo.
pause
exit /b 1
)
REM Activate virtual environment
echo Activating virtual environment...
call venv\Scripts\activate.bat
if errorlevel 1 (
echo ERROR: Failed to activate virtual environment
pause
exit /b 1
)
REM Check if .env file exists
if not exist .env (
echo ERROR: .env file not found
echo.
echo Creating template .env file...
echo OPENAI_API_KEY=your-api-key-here > .env
echo.
echo IMPORTANT: Please edit the .env file and add your actual OpenAI API key
echo You can get your API key from: https://platform.openai.com/api-keys
echo.
echo After adding your API key, run this script again.
echo.
pause
exit /b 1
)
REM Check if API key is configured
findstr /C:"your-api-key-here" .env >nul
if not errorlevel 1 (
echo WARNING: Default API key found in .env file
echo.
echo Please edit the .env file and add your actual OpenAI API key
echo You can get your API key from: https://platform.openai.com/api-keys
echo.
echo After adding your API key, run this script again.
echo.
pause
exit /b 1
)
REM Check if uploads directory exists
if not exist uploads (
echo Creating uploads directory...
mkdir uploads
)
echo Starting web server...
echo.
echo ========================================
echo Application is starting...
echo ========================================
echo.
echo Open your browser to: http://localhost:5000
echo.
echo Press Ctrl+C to stop the server
echo.
echo ========================================
REM Start the application
python web_app.py