IanRonk commited on
Commit
8b698aa
·
1 Parent(s): a1f8ac2

Check label

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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 [{"start": "12:09", "end": "12:51"}]
15
 
16
 
17
  # print(pipeline("VL5M5ZihJK4"))
@@ -20,7 +20,8 @@ demo = gr.Interface(
20
  title=title,
21
  description=description,
22
  inputs="text",
23
- outputs="json",
 
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",