Spaces:
Sleeping
Sleeping
bofenghuang
commited on
Commit
Β·
21b463c
1
Parent(s):
e93c3f9
up
Browse files- app.py +1 -1
- run_demo_openai.py +4 -4
app.py
CHANGED
@@ -1 +1 @@
|
|
1 |
-
|
|
|
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",
|
148 |
-
gr.inputs.Audio(source="upload", type="filepath",
|
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
|
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
|
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 |
),
|