Spaces:
Runtime error
Runtime error
Commit
·
d3c255c
1
Parent(s):
6e1ca58
Added example
Browse files
app.py
CHANGED
@@ -17,6 +17,10 @@ models = {
|
|
17 |
"small": whisper.load_model("small")
|
18 |
}
|
19 |
|
|
|
|
|
|
|
|
|
20 |
|
21 |
def get_lyrics(model_v, video_url, language):
|
22 |
t_init = time.time()
|
@@ -39,9 +43,10 @@ iface = gr.Interface(fn=get_lyrics,
|
|
39 |
gr.Dropdown(choices=["en", "es", "fr", "pt", "it", "ge", "ko", "ch", "ja", "de", "nr", "sw",
|
40 |
"ar"], value="en")
|
41 |
],
|
|
|
42 |
outputs=[
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
iface.launch()
|
|
|
17 |
"small": whisper.load_model("small")
|
18 |
}
|
19 |
|
20 |
+
examples = [
|
21 |
+
["base", "https://www.youtube.com/watch?v=kMNPv_HXffQ", "es"]
|
22 |
+
]
|
23 |
+
|
24 |
|
25 |
def get_lyrics(model_v, video_url, language):
|
26 |
t_init = time.time()
|
|
|
43 |
gr.Dropdown(choices=["en", "es", "fr", "pt", "it", "ge", "ko", "ch", "ja", "de", "nr", "sw",
|
44 |
"ar"], value="en")
|
45 |
],
|
46 |
+
examples=examples,
|
47 |
outputs=[
|
48 |
+
gr.Text(label="Título"),
|
49 |
+
gr.Audio(label="Audio"),
|
50 |
+
gr.Textbox(label="Letra")
|
51 |
+
])
|
52 |
iface.launch()
|