Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -40,7 +40,8 @@ yt_transcribe = gr.Interface(
|
|
| 40 |
gr.inputs.Radio(["transcribe", "translate"], label="Task", default="transcribe"),
|
| 41 |
gr.inputs.Checkbox(label="Return timestamps")
|
| 42 |
],
|
| 43 |
-
outputs=["
|
|
|
|
| 44 |
layout="horizontal",
|
| 45 |
theme="huggingface",
|
| 46 |
title="Whisper Large V2: Transcribe YouTube",
|
|
@@ -50,7 +51,8 @@ yt_transcribe = gr.Interface(
|
|
| 50 |
" arbitrary length."
|
| 51 |
),
|
| 52 |
allow_flagging="never",
|
| 53 |
-
examples=EXAMPLES
|
|
|
|
| 54 |
)
|
| 55 |
|
| 56 |
with demo:
|
|
|
|
| 40 |
gr.inputs.Radio(["transcribe", "translate"], label="Task", default="transcribe"),
|
| 41 |
gr.inputs.Checkbox(label="Return timestamps")
|
| 42 |
],
|
| 43 |
+
outputs=[gr.outputs.HTML(label="Video"),
|
| 44 |
+
gr.outputs.Textbox(label="Transcription").style(show_copy_button=True)],
|
| 45 |
layout="horizontal",
|
| 46 |
theme="huggingface",
|
| 47 |
title="Whisper Large V2: Transcribe YouTube",
|
|
|
|
| 51 |
" arbitrary length."
|
| 52 |
),
|
| 53 |
allow_flagging="never",
|
| 54 |
+
examples=EXAMPLES,
|
| 55 |
+
cache_examples=False
|
| 56 |
)
|
| 57 |
|
| 58 |
with demo:
|