Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ def main_generator(youtube_id:str):
|
|
21 |
|
22 |
output_list = []
|
23 |
|
24 |
-
|
25 |
|
26 |
return text
|
27 |
|
@@ -44,9 +44,9 @@ iface = gr.Interface(
|
|
44 |
|
45 |
inputs = [gr.Textbox(lines=1, placeholder="Link of youtube video here...", label="Input")]
|
46 |
outputs = gr.HighlightedText()
|
47 |
-
title="
|
48 |
-
description = "This demo uses
|
49 |
-
examples = ['https://www.youtube.com/watch?v=
|
50 |
io = gr.Interface(fn=main_generator, inputs=inputs, outputs=outputs, title=title, description = description, examples = examples,
|
51 |
|
52 |
css= """.gr-button-primary { background: -webkit-linear-gradient(
|
|
|
21 |
|
22 |
output_list = []
|
23 |
|
24 |
+
output_list.append(text)
|
25 |
|
26 |
return text
|
27 |
|
|
|
44 |
|
45 |
inputs = [gr.Textbox(lines=1, placeholder="Link of youtube video here...", label="Input")]
|
46 |
outputs = gr.HighlightedText()
|
47 |
+
title="Transcription of Swedish videos"
|
48 |
+
description = "This demo uses small Whisper to transcribe what is spoken in a swedish video"
|
49 |
+
examples = ['https://www.youtube.com/watch?v=6eWhV7xYH-Q']
|
50 |
io = gr.Interface(fn=main_generator, inputs=inputs, outputs=outputs, title=title, description = description, examples = examples,
|
51 |
|
52 |
css= """.gr-button-primary { background: -webkit-linear-gradient(
|