Spaces:
Runtime error
Runtime error
Upload app.py
Browse files
app.py
CHANGED
@@ -80,7 +80,7 @@ mf_transcribe = gr.Interface(
|
|
80 |
description=(
|
81 |
"Transcribe and Translate long-form microphone or audio inputs with the click of a button! Demo uses the the fine-tuned"
|
82 |
f" [whispy/whisper_hf](https://huggingface.co/whispy/whisper_hf) and π€ Transformers to transcribe audio files"
|
83 |
-
" of arbitrary length. It also uses another model for the translation"
|
84 |
),
|
85 |
allow_flagging="never",
|
86 |
)
|
@@ -89,14 +89,15 @@ yt_transcribe = gr.Interface(
|
|
89 |
fn=yt_transcribe,
|
90 |
inputs=[gr.inputs.Textbox(lines=1, placeholder="Paste the URL to a YouTube video here", label="YouTube URL")],
|
91 |
outputs=["html", "text", "text", "text"],
|
92 |
-
#examples = gr.Examples(examples=["https://www.youtube.com/watch?v=xhWhyu8cBTk", "https://www.youtube.com/watch?v=C6Vw_Z3t_2U"]),
|
93 |
layout="horizontal",
|
94 |
theme="huggingface",
|
95 |
title="Whisper Demo: Transcribe, Summarize and Translate YouTube",
|
96 |
description=(
|
97 |
"Transcribe, Summarize and Translate long-form YouTube videos with the click of a button! Demo uses the the fine-tuned "
|
98 |
f" [whispy/whisper_hf](https://huggingface.co/whispy/whisper_hf) and π€ Transformers to transcribe audio files of"
|
99 |
-
" arbitrary length. It also uses other two models to first summarize and then translate the text input"
|
|
|
|
|
100 |
),
|
101 |
allow_flagging="never",
|
102 |
)
|
|
|
80 |
description=(
|
81 |
"Transcribe and Translate long-form microphone or audio inputs with the click of a button! Demo uses the the fine-tuned"
|
82 |
f" [whispy/whisper_hf](https://huggingface.co/whispy/whisper_hf) and π€ Transformers to transcribe audio files"
|
83 |
+
" of arbitrary length. It also uses another model for the translation."
|
84 |
),
|
85 |
allow_flagging="never",
|
86 |
)
|
|
|
89 |
fn=yt_transcribe,
|
90 |
inputs=[gr.inputs.Textbox(lines=1, placeholder="Paste the URL to a YouTube video here", label="YouTube URL")],
|
91 |
outputs=["html", "text", "text", "text"],
|
|
|
92 |
layout="horizontal",
|
93 |
theme="huggingface",
|
94 |
title="Whisper Demo: Transcribe, Summarize and Translate YouTube",
|
95 |
description=(
|
96 |
"Transcribe, Summarize and Translate long-form YouTube videos with the click of a button! Demo uses the the fine-tuned "
|
97 |
f" [whispy/whisper_hf](https://huggingface.co/whispy/whisper_hf) and π€ Transformers to transcribe audio files of"
|
98 |
+
" arbitrary length. It also uses other two models to first summarize and then translate the text input. You can try with the following examples: "
|
99 |
+
f" [Video1](https://www.youtube.com/watch?v=xhWhyu8cBTk)"
|
100 |
+
f" [Video2](https://www.youtube.com/watch?v=C6Vw_Z3t_2U)"
|
101 |
),
|
102 |
allow_flagging="never",
|
103 |
)
|