Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -32,25 +32,25 @@ app = gr.Blocks()
|
|
32 |
microphone_tab = gr.Interface(
|
33 |
fn=microphone_or_file_transcribe,
|
34 |
inputs=gr.Audio(source="microphone", type="filepath"),
|
35 |
-
outputs=["
|
36 |
-
title="Whisper Small Swedish",
|
37 |
-
description="Realtime demo for Swedish speech recognition using a fine-tuned Whisper small model.",
|
38 |
)
|
39 |
|
40 |
youtube_tab = gr.Interface(
|
41 |
fn=youtube_transcribe,
|
42 |
inputs=[gr.inputs.Textbox(lines=1, placeholder="Paste the URL to a YouTube video", label="URL")],
|
43 |
-
outputs="
|
44 |
-
title="Whisper Small Swedish",
|
45 |
-
description="Realtime demo for Swedish speech recognition using a fine-tuned Whisper small model.",
|
46 |
)
|
47 |
|
48 |
file_tab = gr.Interface(
|
49 |
fn=microphone_or_file_transcribe,
|
50 |
inputs= gr.inputs.Audio(source="upload", type="filepath"),
|
51 |
-
outputs=["
|
52 |
-
title="Whisper Small Swedish",
|
53 |
-
description="Realtime demo for Swedish speech recognition using a fine-tuned Whisper small model.",
|
54 |
)
|
55 |
|
56 |
with app:
|
|
|
32 |
microphone_tab = gr.Interface(
|
33 |
fn=microphone_or_file_transcribe,
|
34 |
inputs=gr.Audio(source="microphone", type="filepath"),
|
35 |
+
outputs=[outputs=gr.Textbox(label="Text"), outputs=gr.Textbox(label="Feeling")],
|
36 |
+
title="Whisper Small Swedish: Microphone ",
|
37 |
+
description="Realtime demo for Swedish speech recognition using a fine-tuned Whisper small model and Sentiment Analysis.",
|
38 |
)
|
39 |
|
40 |
youtube_tab = gr.Interface(
|
41 |
fn=youtube_transcribe,
|
42 |
inputs=[gr.inputs.Textbox(lines=1, placeholder="Paste the URL to a YouTube video", label="URL")],
|
43 |
+
outputs=[outputs=gr.Textbox(label="Text"), outputs=gr.Textbox(label="Feeling")],
|
44 |
+
title="Whisper Small Swedish: Youtube",
|
45 |
+
description="Realtime demo for Swedish speech recognition using a fine-tuned Whisper small model and Sentiment Analysis.",
|
46 |
)
|
47 |
|
48 |
file_tab = gr.Interface(
|
49 |
fn=microphone_or_file_transcribe,
|
50 |
inputs= gr.inputs.Audio(source="upload", type="filepath"),
|
51 |
+
outputs=[outputs=gr.Textbox(label="Text"), outputs=gr.Textbox(label="Feeling")],
|
52 |
+
title="Whisper Small Swedish: File",
|
53 |
+
description="Realtime demo for Swedish speech recognition using a fine-tuned Whisper small model and Sentiment Analysis.",
|
54 |
)
|
55 |
|
56 |
with app:
|