Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -5,6 +5,7 @@ import torch
|
|
5 |
|
6 |
from transformers import pipeline
|
7 |
from faster_whisper import WhisperModel
|
|
|
8 |
|
9 |
# Pre-Initialize
|
10 |
DEVICE = "auto"
|
@@ -18,6 +19,8 @@ BATCH_SIZE = 8
|
|
18 |
|
19 |
# repo = pipeline(task="automatic-speech-recognition", model="deepdml/faster-whisper-large-v3-turbo-ct2", chunk_length_s=30, device=DEVICE)
|
20 |
|
|
|
|
|
21 |
repo = WhisperModel("faster-whisper-large-v3-turbo-ct2")
|
22 |
|
23 |
css = '''
|
|
|
5 |
|
6 |
from transformers import pipeline
|
7 |
from faster_whisper import WhisperModel
|
8 |
+
from huggingface_hub import snapshot_download
|
9 |
|
10 |
# Pre-Initialize
|
11 |
DEVICE = "auto"
|
|
|
19 |
|
20 |
# repo = pipeline(task="automatic-speech-recognition", model="deepdml/faster-whisper-large-v3-turbo-ct2", chunk_length_s=30, device=DEVICE)
|
21 |
|
22 |
+
snapshot_download(repo_id="deepdml/faster-whisper-large-v3-turbo-ct2", local_dir="faster-whisper-large-v3-turbo-ct2", repo_type="model")
|
23 |
+
|
24 |
repo = WhisperModel("faster-whisper-large-v3-turbo-ct2")
|
25 |
|
26 |
css = '''
|