yanyaoer commited on
Commit
55f7ace
·
verified ·
1 Parent(s): eb2c63f

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. main.py +2 -2
main.py CHANGED
@@ -11,8 +11,9 @@ from pathlib import Path
11
 
12
  # import mlx_whisper
13
  import yt_dlp
 
14
  # from pywhispercpp.model import Model as whisper_cpp
15
- from whispercpp import Whisper
16
 
17
  def download(url):
18
  ydl_opts = {
@@ -63,7 +64,6 @@ def asr_cpp(wav_file):
63
 
64
 
65
  def asr_fast(wav_file):
66
- from faster_whisper import WhisperModel
67
  model = WhisperModel('large-v3-turbo', device="cpu", compute_type="float32")
68
  # model = Whisper.from_pretrained(
69
  # "ggml-large-v3-turbo.bin",
 
11
 
12
  # import mlx_whisper
13
  import yt_dlp
14
+ from faster_whisper import WhisperModel
15
  # from pywhispercpp.model import Model as whisper_cpp
16
+ # from whispercpp import Whisper
17
 
18
  def download(url):
19
  ydl_opts = {
 
64
 
65
 
66
  def asr_fast(wav_file):
 
67
  model = WhisperModel('large-v3-turbo', device="cpu", compute_type="float32")
68
  # model = Whisper.from_pretrained(
69
  # "ggml-large-v3-turbo.bin",