Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,8 +4,6 @@ import spaces
|
|
| 4 |
import torch
|
| 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"
|
|
@@ -17,9 +15,7 @@ print(f"[SYSTEM] | Using {DEVICE} type compute device.")
|
|
| 17 |
DEFAULT_TASK = "transcribe"
|
| 18 |
BATCH_SIZE = 8
|
| 19 |
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
repo = pipeline(task="automatic-speech-recognition", model="onnx-community/whisper-large-v3-turbo", chunk_length_s=30, device=DEVICE)
|
| 23 |
|
| 24 |
css = '''
|
| 25 |
.gradio-container{max-width: 560px !important}
|
|
|
|
| 4 |
import torch
|
| 5 |
|
| 6 |
from transformers import pipeline
|
|
|
|
|
|
|
| 7 |
|
| 8 |
# Pre-Initialize
|
| 9 |
DEVICE = "auto"
|
|
|
|
| 15 |
DEFAULT_TASK = "transcribe"
|
| 16 |
BATCH_SIZE = 8
|
| 17 |
|
| 18 |
+
repo = pipeline(task="automatic-speech-recognition", model="openai/whisper-large-v3-turbo", chunk_length_s=30, device=DEVICE)
|
|
|
|
|
|
|
| 19 |
|
| 20 |
css = '''
|
| 21 |
.gradio-container{max-width: 560px !important}
|