Staticaliza commited on
Commit
6cddd57
·
verified ·
1 Parent(s): dce932e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -5
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
- snapshot_download(repo_id="onnx-community/whisper-large-v3-turbo", local_dir="whisper-large-v3-turbo", repo_type="model")
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}