bofenghuang commited on
Commit
a2cff01
·
1 Parent(s): 1ffac88
Files changed (2) hide show
  1. run_demo.py +1 -1
  2. run_demo_multi_models.py +3 -3
run_demo.py CHANGED
@@ -5,7 +5,7 @@ import pytube as pt
5
  from transformers import pipeline
6
  from huggingface_hub import model_info
7
 
8
- MODEL_NAME = "bhuang/whisper-medium-cv11-french-case-punctuation"
9
  CHUNK_LENGTH_S = 30
10
 
11
  device = 0 if torch.cuda.is_available() else "cpu"
 
5
  from transformers import pipeline
6
  from huggingface_hub import model_info
7
 
8
+ MODEL_NAME = "bofenghuang/whisper-medium-cv11-french-punct"
9
  CHUNK_LENGTH_S = 30
10
 
11
  device = 0 if torch.cuda.is_available() else "cpu"
run_demo_multi_models.py CHANGED
@@ -11,15 +11,15 @@ from transformers.utils.logging import disable_progress_bar
11
  warnings.filterwarnings("ignore")
12
  disable_progress_bar()
13
 
14
- DEFAULT_MODEL_NAME = "bofenghuang/whisper-medium-cv11-french-case-punctuation"
15
  MODEL_NAMES = [
16
  "openai/whisper-small",
17
  "openai/whisper-medium",
18
  "openai/whisper-large-v2",
19
  "bofenghuang/whisper-small-cv11-french",
20
- "bofenghuang/whisper-small-cv11-french-case-punctuation",
21
  "bofenghuang/whisper-medium-cv11-french",
22
- "bofenghuang/whisper-medium-cv11-french-case-punctuation",
23
  ]
24
  CHUNK_LENGTH_S = 30
25
  MAX_NEW_TOKENS = 225
 
11
  warnings.filterwarnings("ignore")
12
  disable_progress_bar()
13
 
14
+ DEFAULT_MODEL_NAME = "bofenghuang/whisper-medium-cv11-french-punct"
15
  MODEL_NAMES = [
16
  "openai/whisper-small",
17
  "openai/whisper-medium",
18
  "openai/whisper-large-v2",
19
  "bofenghuang/whisper-small-cv11-french",
20
+ "bofenghuang/whisper-small-cv11-french-punct",
21
  "bofenghuang/whisper-medium-cv11-french",
22
+ "bofenghuang/whisper-medium-cv11-french-punct",
23
  ]
24
  CHUNK_LENGTH_S = 30
25
  MAX_NEW_TOKENS = 225