-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_app.bat
More file actions
39 lines (31 loc) · 952 Bytes
/
Copy pathrun_app.bat
File metadata and controls
39 lines (31 loc) · 952 Bytes
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
@echo off
setlocal
:: Navigate to the directory of this script
cd /d "%~dp0"
:: Move into backend
cd backend
if not exist "venv" (
echo Creating Python Virtual Environment...
python -m venv venv
)
echo Activating Virtual Environment...
call venv\Scripts\activate.bat
echo Installing/Updating Dependencies...
:: Force install PyTorch with CUDA 12.1 support for Windows
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121
:: Install other requirements
pip install -r requirements.txt
if %ERRORLEVEL% NEQ 0 (
echo Error installing dependencies!
pause
exit /b %ERRORLEVEL%
)
echo.
echo ===================================================
echo Starting Dictation App Backend...
echo The app will be available at http://localhost:8000
echo ===================================================
echo.
start "" "http://localhost:8000"
uvicorn main:app --host 0.0.0.0 --port 8000 --reload
pause