You are a developer assistant where you only provide the code…
- User
Assistant: User: System: You are a developer assistant where you only provide the code for a question. No explanation required. Write a simple json sample. Given the transcript segments, can you generate a list of highlights with start and end times for the video using multiple segments? Please meet the following constraints:
- The highlights should be a direct part of the video and should not be out of context. - The highlights should be interesting and clippable, providing value to the viewer. - The highlights should be 20 to 60 seconds MAXIMUM. - The highlights should include more than one segment to provide context and continuity. - The highlights should not cut off in the middle of a sentence or idea. - The highlight should be disregarded if it is not a complete thought - The user provided highlight phrases should be used to generate the highlights - The highlights should be based on the relevance of the segments to the highlight phrases - The highlights should be scored out of 100 based on the relevance of the segments to the highlight phrases. - The score should be greater than 80 Respond with the following JSON schema with valid JSON syntax for highlights: {'$defs': {'Highlight': {'properties': {'title': {'description': 'Title of the Video highlight', 'title': 'Title', 'type': 'string'}, 'start_time': {'description': 'Start time of the video highlight', 'title': 'Start Time', 'type': 'number'}, 'end_time': {'description': 'End time of the video highlight', 'title': 'End Time', 'type': 'number'}, 'score': {'description': 'Score of the video highlight', 'title': 'Score', 'type': 'number'}}, 'required': ['title', 'start_time', 'end_time', 'score'], 'title': 'Highlight', 'type': 'object'}}, 'properties': {'chapters': {'description': 'List of Highlights', 'items': {'$ref': '#/$defs/Highlight'}, 'title': 'Chapters', 'type': 'array'}}, 'required': ['chapters'], 'title': 'HighlightSchema', 'type': 'object'} Each highlight should have the following fields: - title: title of the highlight - start_time: start time of the highlight as a float in seconds - end_time: end time of the highlight as a float in seconds - score: score of the highlight as a float out of 100User: Key Phrases: Funny or Interesting
[2.26 - 6.68]: It's weekend ducting with Colin Jost as Michael Chey. [14.94 - 16.06]: Thank you very much. [16.30 - 17.14]: Good evening, everyone. [17.28 - 18.10]: We're welcome to weekend ducting. [18.14 - 18.88]: I'm Michael Chey. [19.02 - 19.90]: I'm Colin Jost. [22.66 - 26.90]: Well, guys, the election is exactly 30 days away. [27.24 - 27.96]: Just think. [27.96 - 32.40]: In only 30 days, this whole nightmare will be nowhere close to over. [33.80 - 38.82]: Earlier tonight, Donald Trump held a rally at the site of his first assassination attempt, [39.14 - 43.94]: which I have to admit is very brave of him, though it was interesting that right before Trump spoke, [44.36 - 47.82]: he sent JD Vance out in a long red tie in a blonde wig. [51.44 - 59.50]: Elon Musk, seen here trying to jump to Mars, joined Trump on stage at the rally tonight, [59.50 - 64.92]: which may be the last time Trump and Musk will be together until they co-host our Christmas show. [68.64 - 73.80]: It was reported that last month, the U.S. added 245,000 new jobs. [73.80 - 76.50]: Unfortunately, they were all Diddy accuser. [79.58 - 84.72]: It was announced that Sean P. Diddy combs his sex trafficking case has been assigned to a new judge, [85.12 - 87.08]: one that Diddy hopes is cool with rapes. [91.18 - 92.80]: I do it for that guy. [92.82 - 93.28]: Yeah, sure. [94.56 - 99.62]: It was reported that Diddy once invited Prince Harry and Prince William to one of his parties, [99.62 - 100.88]: but they did not go. [100.88 - 105.72]: Although before Diddy could even finish writing the invite, Prince Andrew was there. [109.38 - 111.42]: Yesterday, the devil went down to Georgia. [111.72 - 112.08]: No, I'm kidding. [112.88 - 117.76]: Donald Trump traveled to Georgia to survey the damage from Hurricane Helene, [117.92 - 120.80]: which is bold because nothing scares Trump more than high winds. [124.12 - 128.86]: Vice President Kamala Harris traveled to North Carolina to survey damage from the hurricane, [128.86 - 130.94]: which is the second time this year. [131.10 - 133.44]: She swooped in after a huge disaster. [140.18 - 145.82]: New court filings in Donald Trump's election interference case revealed that on January 6, [146.22 - 149.90]: Trump was scrolling through Twitter during the attack on the Capitol, [150.26 - 154.26]: which is just so infuriating to those of us who were there fighting for him. [158.42 - Assistant: Assistant:
- Assistant
{ "chapters": [ { "title": "Trump Rally and Elon Musk Appearance", "start_time": 33.8, "end_time": 64.92, "score": 85 }, { "title": "Diddy and the Royals", "start_time": 79.58, "end_time": 105.72, "score": 83 } ] }