bofenghuang commited on
Commit
a7cf274
·
1 Parent(s): 0d86ad9
Files changed (1) hide show
  1. run_demo_multi_models.py +5 -10
run_demo_multi_models.py CHANGED
@@ -8,6 +8,9 @@ from transformers import pipeline
8
 
9
  DEFAULT_MODEL_NAME = "bhuang/whisper-medium-cv11-french-case-punctuation"
10
  MODEL_NAMES = [
 
 
 
11
  "bhuang/whisper-small-cv11-french",
12
  "bhuang/whisper-small-cv11-french-case-punctuation",
13
  "bhuang/whisper-medium-cv11-french",
@@ -105,11 +108,7 @@ mf_transcribe = gr.Interface(
105
  layout="horizontal",
106
  theme="huggingface",
107
  title="Whisper Demo: Transcribe Audio",
108
- description=(
109
- "Transcribe long-form microphone or audio inputs with the click of a button! Demo uses the the fine-tuned"
110
- f" checkpoint [{DEFAULT_MODEL_NAME}](https://huggingface.co/{DEFAULT_MODEL_NAME}) and 🤗 Transformers to transcribe audio files"
111
- " of arbitrary length."
112
- ),
113
  allow_flagging="never",
114
  )
115
 
@@ -123,11 +122,7 @@ yt_transcribe = gr.Interface(
123
  layout="horizontal",
124
  theme="huggingface",
125
  title="Whisper Demo: Transcribe YouTube",
126
- description=(
127
- "Transcribe long-form YouTube videos with the click of a button! Demo uses the the fine-tuned checkpoint:"
128
- f" [{DEFAULT_MODEL_NAME}](https://huggingface.co/{DEFAULT_MODEL_NAME}) and 🤗 Transformers to transcribe audio files of"
129
- " arbitrary length."
130
- ),
131
  allow_flagging="never",
132
  )
133
 
 
8
 
9
  DEFAULT_MODEL_NAME = "bhuang/whisper-medium-cv11-french-case-punctuation"
10
  MODEL_NAMES = [
11
+ "openai/whisper-small",
12
+ "openai/whisper-medium",
13
+ "openai/whisper-large-v2",
14
  "bhuang/whisper-small-cv11-french",
15
  "bhuang/whisper-small-cv11-french-case-punctuation",
16
  "bhuang/whisper-medium-cv11-french",
 
108
  layout="horizontal",
109
  theme="huggingface",
110
  title="Whisper Demo: Transcribe Audio",
111
+ description="Transcribe long-form microphone or audio inputs with the click of a button!",
 
 
 
 
112
  allow_flagging="never",
113
  )
114
 
 
122
  layout="horizontal",
123
  theme="huggingface",
124
  title="Whisper Demo: Transcribe YouTube",
125
+ description="Transcribe long-form YouTube videos with the click of a button!",
 
 
 
 
126
  allow_flagging="never",
127
  )
128