Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
fastapi
fastapi[standard]
faster_whisper
torch
43 changes: 43 additions & 0 deletions run-windows.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
@echo off
setlocal

:: Check if venv directory exists
if not exist venv (
echo Virtual environment not found. Creating new environment...
python -m venv venv

:: Check if venv creation was successful
if errorlevel 1 (
echo Failed to create virtual environment. Please check if Python is installed correctly.
pause
exit /b 1
)

:: Activate the virtual environment
call venv\Scripts\activate

:: Check if requirements.txt exists
if exist requirements.txt (
echo Installing requirements...
pip install -r requirements.txt

if errorlevel 1 (
echo Failed to install requirements.
pause
exit /b 1
)
) else (
echo Warning: requirements.txt not found. Skipping package installation.
)
) else (
echo Virtual environment found. Activating...
call venv\Scripts\activate
)

:: Run FastAPI application
echo Starting FastAPI application...
fastapi run .\main.py

:: Deactivate virtual environment on exit
deactivate
endlocal