Spaces:
Runtime error
Runtime error
Check label
Browse files
app.py
CHANGED
|
@@ -11,7 +11,7 @@ def pipeline(video_url):
|
|
| 11 |
video_id = video_url.split("?v=")[-1]
|
| 12 |
punctuated_text = punctuate(video_id)
|
| 13 |
# return punctuated_text
|
| 14 |
-
return [{"
|
| 15 |
|
| 16 |
|
| 17 |
# print(pipeline("VL5M5ZihJK4"))
|
|
@@ -20,7 +20,8 @@ demo = gr.Interface(
|
|
| 20 |
title=title,
|
| 21 |
description=description,
|
| 22 |
inputs="text",
|
| 23 |
-
outputs=
|
|
|
|
| 24 |
examples=[
|
| 25 |
"https://www.youtube.com/watch?v=VL5M5ZihJK4",
|
| 26 |
"https://www.youtube.com/watch?v=VL5M5ZihJK4",
|
|
|
|
| 11 |
video_id = video_url.split("?v=")[-1]
|
| 12 |
punctuated_text = punctuate(video_id)
|
| 13 |
# return punctuated_text
|
| 14 |
+
return [{"12:09-12-51": 0.9}]
|
| 15 |
|
| 16 |
|
| 17 |
# print(pipeline("VL5M5ZihJK4"))
|
|
|
|
| 20 |
title=title,
|
| 21 |
description=description,
|
| 22 |
inputs="text",
|
| 23 |
+
outputs=gr.Label(num_top_classes=3),
|
| 24 |
+
# outputs="json",
|
| 25 |
examples=[
|
| 26 |
"https://www.youtube.com/watch?v=VL5M5ZihJK4",
|
| 27 |
"https://www.youtube.com/watch?v=VL5M5ZihJK4",
|