IanRonk commited on
Commit
a1f8ac2
1 Parent(s): 54a0cd0

Check for json output

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -4,12 +4,14 @@ from functions.punctuation import punctuate
4
 
5
  title = "sponsoredBye - never listen to sponsors again"
6
  description = "Sponsored sections in videos are annoying and take up a lot of time. Improve your YouTube watching experience, by filling in the youtube url and figure out what segments to skip."
 
7
 
8
 
9
  def pipeline(video_url):
10
  video_id = video_url.split("?v=")[-1]
11
  punctuated_text = punctuate(video_id)
12
- return punctuated_text
 
13
 
14
 
15
  # print(pipeline("VL5M5ZihJK4"))
@@ -18,7 +20,7 @@ demo = gr.Interface(
18
  title=title,
19
  description=description,
20
  inputs="text",
21
- outputs="text",
22
  examples=[
23
  "https://www.youtube.com/watch?v=VL5M5ZihJK4",
24
  "https://www.youtube.com/watch?v=VL5M5ZihJK4",
 
4
 
5
  title = "sponsoredBye - never listen to sponsors again"
6
  description = "Sponsored sections in videos are annoying and take up a lot of time. Improve your YouTube watching experience, by filling in the youtube url and figure out what segments to skip."
7
+ article = "Check out [the original Rick and Morty Bot](https://huggingface.co/spaces/kingabzpro/Rick_and_Morty_Bot) that this demo is based off of."
8
 
9
 
10
  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
  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",