Spaces:
Runtime error
Runtime error
Upload app.py
Browse files
app.py
CHANGED
|
@@ -73,7 +73,10 @@ mf_transcribe = gr.Interface(
|
|
| 73 |
gr.inputs.Audio(source="microphone", type="filepath", optional=True),
|
| 74 |
gr.inputs.Audio(source="upload", type="filepath", optional=True),
|
| 75 |
],
|
| 76 |
-
outputs=[
|
|
|
|
|
|
|
|
|
|
| 77 |
layout="horizontal",
|
| 78 |
theme="huggingface",
|
| 79 |
title="Whisper Demo: Transcribe and Translate Italian Audio",
|
|
@@ -88,7 +91,11 @@ mf_transcribe = gr.Interface(
|
|
| 88 |
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",
|
|
|
|
|
|
|
|
|
|
|
|
|
| 92 |
layout="horizontal",
|
| 93 |
theme="huggingface",
|
| 94 |
title="Whisper Demo: Transcribe, Summarize and Translate YouTube",
|
|
|
|
| 73 |
gr.inputs.Audio(source="microphone", type="filepath", optional=True),
|
| 74 |
gr.inputs.Audio(source="upload", type="filepath", optional=True),
|
| 75 |
],
|
| 76 |
+
outputs=[
|
| 77 |
+
gr.Textbox(label="Transcribed text"),
|
| 78 |
+
gr.Textbox(label="Translated text"),
|
| 79 |
+
],
|
| 80 |
layout="horizontal",
|
| 81 |
theme="huggingface",
|
| 82 |
title="Whisper Demo: Transcribe and Translate Italian Audio",
|
|
|
|
| 91 |
yt_transcribe = gr.Interface(
|
| 92 |
fn=yt_transcribe,
|
| 93 |
inputs=[gr.inputs.Textbox(lines=1, placeholder="Paste the URL to a YouTube video here", label="YouTube URL")],
|
| 94 |
+
outputs=["html",
|
| 95 |
+
gr.Textbox(label="Transcribed text"),
|
| 96 |
+
gr.Textbox(label="Summarized text"),
|
| 97 |
+
gr.Textbox(label="Translated text"),
|
| 98 |
+
],
|
| 99 |
layout="horizontal",
|
| 100 |
theme="huggingface",
|
| 101 |
title="Whisper Demo: Transcribe, Summarize and Translate YouTube",
|