Spaces:
Sleeping
Sleeping
SevenhuijsenM
commited on
Commit
·
00c3c4f
1
Parent(s):
b65ce78
Attempt for video url
Browse files
app.py
CHANGED
@@ -38,7 +38,7 @@ def audio_to_text(audio):
|
|
38 |
return text
|
39 |
|
40 |
iface_video_url = gr.Interface(
|
41 |
-
fn=
|
42 |
inputs="text",
|
43 |
outputs="text",
|
44 |
title="Whisper Small Dutch",
|
@@ -53,7 +53,7 @@ iface_audio = gr.Interface(
|
|
53 |
description="Realtime demo for dutch speech recognition using a fine-tuned Whisper small model.",
|
54 |
)
|
55 |
|
56 |
-
app = gr.TabbedInterface([iface_audio,
|
57 |
|
58 |
if __name__ == "__main__":
|
59 |
app.launch()
|
|
|
38 |
return text
|
39 |
|
40 |
iface_video_url = gr.Interface(
|
41 |
+
fn=download_audio,
|
42 |
inputs="text",
|
43 |
outputs="text",
|
44 |
title="Whisper Small Dutch",
|
|
|
53 |
description="Realtime demo for dutch speech recognition using a fine-tuned Whisper small model.",
|
54 |
)
|
55 |
|
56 |
+
app = gr.TabbedInterface([iface_audio, iface_video_url], ["Audio to text", "Video to text"])
|
57 |
|
58 |
if __name__ == "__main__":
|
59 |
app.launch()
|