Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -69,7 +69,7 @@ mf_transcribe = gr.Interface(
|
|
69 |
outputs="text",
|
70 |
layout="horizontal",
|
71 |
theme="huggingface",
|
72 |
-
title="
|
73 |
description=(
|
74 |
"Transcribe long-form microphone or audio inputs with the click of a button! Demo uses the the fine-tuned"
|
75 |
f" checkpoint [{MODEL_NAME}](https://huggingface.co/{MODEL_NAME}) and 🤗 Transformers to transcribe audio files"
|
@@ -81,11 +81,11 @@ mf_transcribe = gr.Interface(
|
|
81 |
|
82 |
yt_transcribe = gr.Interface(
|
83 |
fn=yt_transcribe,
|
84 |
-
inputs=[gr.inputs.Textbox(lines=1, placeholder="
|
85 |
outputs=["html", "text"],
|
86 |
layout="horizontal",
|
87 |
theme="huggingface",
|
88 |
-
title="
|
89 |
description=(
|
90 |
"Transcribe long-form YouTube videos with the click of a button! Demo uses the the fine-tuned checkpoint:"
|
91 |
f" [{MODEL_NAME}](https://huggingface.co/{MODEL_NAME}) and 🤗 Transformers to transcribe audio files of"
|
@@ -96,6 +96,6 @@ yt_transcribe = gr.Interface(
|
|
96 |
)
|
97 |
|
98 |
with demo:
|
99 |
-
gr.TabbedInterface([mf_transcribe, yt_transcribe], ["
|
100 |
|
101 |
demo.launch(enable_queue=True)
|
|
|
69 |
outputs="text",
|
70 |
layout="horizontal",
|
71 |
theme="huggingface",
|
72 |
+
title="口译示例: 音频转录",
|
73 |
description=(
|
74 |
"Transcribe long-form microphone or audio inputs with the click of a button! Demo uses the the fine-tuned"
|
75 |
f" checkpoint [{MODEL_NAME}](https://huggingface.co/{MODEL_NAME}) and 🤗 Transformers to transcribe audio files"
|
|
|
81 |
|
82 |
yt_transcribe = gr.Interface(
|
83 |
fn=yt_transcribe,
|
84 |
+
inputs=[gr.inputs.Textbox(lines=1, placeholder="请粘贴视频地址", label="视频地址URL")],
|
85 |
outputs=["html", "text"],
|
86 |
layout="horizontal",
|
87 |
theme="huggingface",
|
88 |
+
title="口译示例: YouTube视频转录",
|
89 |
description=(
|
90 |
"Transcribe long-form YouTube videos with the click of a button! Demo uses the the fine-tuned checkpoint:"
|
91 |
f" [{MODEL_NAME}](https://huggingface.co/{MODEL_NAME}) and 🤗 Transformers to transcribe audio files of"
|
|
|
96 |
)
|
97 |
|
98 |
with demo:
|
99 |
+
gr.TabbedInterface([mf_transcribe, yt_transcribe], ["音频转录", "视频转录"])
|
100 |
|
101 |
demo.launch(enable_queue=True)
|