Spaces:
Runtime error
Runtime error
Upload app.py
Browse files
app.py
CHANGED
|
@@ -89,6 +89,7 @@ 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 |
layout="horizontal",
|
| 93 |
theme="huggingface",
|
| 94 |
title="Whisper Demo: Transcribe, Summarize and Translate YouTube",
|
|
@@ -98,7 +99,6 @@ yt_transcribe = gr.Interface(
|
|
| 98 |
" arbitrary length. It also uses other two models to first summarize and then translate the text input"
|
| 99 |
),
|
| 100 |
allow_flagging="never",
|
| 101 |
-
examples = gr.Examples(examples=["https://www.youtube.com/watch?v=xhWhyu8cBTk"],inputs=[inputs])
|
| 102 |
)
|
| 103 |
|
| 104 |
with demo:
|
|
|
|
| 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",
|
|
|
|
| 99 |
" arbitrary length. It also uses other two models to first summarize and then translate the text input"
|
| 100 |
),
|
| 101 |
allow_flagging="never",
|
|
|
|
| 102 |
)
|
| 103 |
|
| 104 |
with demo:
|