forked from ufal/whisper_streaming
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add some scripts for downloading a model, starting the program
- Loading branch information
Showing
3 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
from huggingface_hub import snapshot_download | ||
|
||
repo_id = "deepdml/faster-whisper-large-v3-turbo-ct2" | ||
local_dir = "faster-whisper-large-v3-turbo-ct2" | ||
snapshot_download(repo_id=repo_id, local_dir=local_dir, repo_type="model") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
set PATH=%PATH%;C:\Program Files\NVIDIA GPU Computing Toolkit\cudnn-windows-x86_64-8.9.7.29_cuda12-archive\bin | ||
set PATH=%PATH%;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.6\bin | ||
|
||
cd .. | ||
call .venv\Scripts\activate | ||
|
||
python whisper_online_server.py --host 0.0.0.0 --port 43007 --task transcribe --model faster-whisper-large-v3-turbo-ct2 --language en --backend faster-whisper --min-chunk-size 1 | ||
|
||
deactivate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
set PATH=%PATH%;C:\Program Files\NVIDIA GPU Computing Toolkit\cudnn-windows-x86_64-8.9.7.29_cuda12-archive\bin | ||
set PATH=%PATH%;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.6\bin | ||
|
||
cd .. | ||
call .venv\Scripts\activate | ||
|
||
python whisper_online_server.py --host 0.0.0.0 --port 43007 --task transcribe --model large-v3 --language en --backend faster-whisper --min-chunk-size 1 | ||
|
||
deactivate |