bofenghuang commited on
Commit
21b463c
Β·
1 Parent(s): e93c3f9
Files changed (2) hide show
  1. app.py +1 -1
  2. run_demo_openai.py +4 -4
app.py CHANGED
@@ -1 +1 @@
1
- run_demo_openai_merged.py
 
1
+ run_demo_openai.py
run_demo_openai.py CHANGED
@@ -144,8 +144,8 @@ demo = gr.Blocks()
144
  mf_transcribe = gr.Interface(
145
  fn=transcribe,
146
  inputs=[
147
- gr.inputs.Audio(source="microphone", type="filepath", optional=True, label="Record"),
148
- gr.inputs.Audio(source="upload", type="filepath", optional=True, label="Upload File"),
149
  gr.Checkbox(label="With timestamps?", value=True),
150
  ],
151
  # outputs="text",
@@ -154,7 +154,7 @@ mf_transcribe = gr.Interface(
154
  theme="huggingface",
155
  title="Whisper French Demo πŸ‡«πŸ‡· : Transcribe Audio",
156
  description=(
157
- "Transcribe long-form microphone or audio inputs with the click of a button! Demo uses the the fine-tuned"
158
  f" checkpoint [{DEFAULT_MODEL_NAME}](https://huggingface.co/{DEFAULT_MODEL_NAME}) and πŸ€— Transformers to transcribe audio files"
159
  " of arbitrary length."
160
  ),
@@ -176,7 +176,7 @@ yt_transcribe = gr.Interface(
176
  theme="huggingface",
177
  title="Whisper French Demo πŸ‡«πŸ‡· : Transcribe YouTube",
178
  description=(
179
- "Transcribe long-form YouTube videos with the click of a button! Demo uses the the fine-tuned checkpoint:"
180
  f" [{DEFAULT_MODEL_NAME}](https://huggingface.co/{DEFAULT_MODEL_NAME}) and πŸ€— Transformers to transcribe audio files of"
181
  " arbitrary length."
182
  ),
 
144
  mf_transcribe = gr.Interface(
145
  fn=transcribe,
146
  inputs=[
147
+ gr.inputs.Audio(source="microphone", type="filepath", label="Record", optional=True),
148
+ gr.inputs.Audio(source="upload", type="filepath", label="Upload File", optional=True),
149
  gr.Checkbox(label="With timestamps?", value=True),
150
  ],
151
  # outputs="text",
 
154
  theme="huggingface",
155
  title="Whisper French Demo πŸ‡«πŸ‡· : Transcribe Audio",
156
  description=(
157
+ "Transcribe long-form microphone or audio inputs with the click of a button!\n\nDemo uses the the fine-tuned"
158
  f" checkpoint [{DEFAULT_MODEL_NAME}](https://huggingface.co/{DEFAULT_MODEL_NAME}) and πŸ€— Transformers to transcribe audio files"
159
  " of arbitrary length."
160
  ),
 
176
  theme="huggingface",
177
  title="Whisper French Demo πŸ‡«πŸ‡· : Transcribe YouTube",
178
  description=(
179
+ "Transcribe long-form YouTube videos with the click of a button!\n\nDemo uses the the fine-tuned checkpoint:"
180
  f" [{DEFAULT_MODEL_NAME}](https://huggingface.co/{DEFAULT_MODEL_NAME}) and πŸ€— Transformers to transcribe audio files of"
181
  " arbitrary length."
182
  ),