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
510.92]: and they swapped out Biden with Gamabla. [512.60 - 514.50]: And now everything is chaos. [514.84 - 517.98]: They're eating the dogs. They're eating the cats. [518.84 - 521.38]: They're taking your pets and they're doing freak-offs. [522.74 - 526.56]: They're doing freak-offs with the dogs and they're making the geese swatch. [526.76 - 527.56]: It's very sad. [528.04 - 530.14]: It's very sad. They're doing a ditty. [531.70 - 535.34]: At least that's what I'm told by my running mate, JD Vance. [536.22 - 539.46]: People are saying he was a bad pick and in many ways he was. [540.30 - 541.44]: JD, come on up. [542.68 - 543.62]: Thank you, President. [544.08 - 544.86]: Thank you. [548.52 - 548.92]: Okay. [550.94 - 553.10]: He's going to take in the glass with him. That's fine. [553.26 - 555.68]: Anyway, hello, hello. It is I, JD Vance. [555.78 - 556.76]: How much do we love Donald Trump? [557.24 - 558.38]: You're just a saturday and you told me, [558.38 - 562.50]: JD, you're like a son to me because I don't like you and I'm stuck with you. [563.38 - 566.56]: I'm sure you've all heard what the liberal media's been saying about me. [566.88 - 568.88]: I'm a creep. I'm a weirdo. [569.44 - 570.60]: What the hell am I doing here? [571.72 - 574.20]: I'll tell you what I'm doing here, getting this crowd-hopped. [577.80 - 579.38]: Yeah, you guys are awesome. [580.80 - 581.58]: Swinging a miss. [582.38 - 585.50]: Now on top platform. It's called Project 2025. [586.52 - 591.22]: Oh, we apologize. The Trump campaign is asking us to cut away from his rally. [591.98 - 594.46]: And to return instead to Vice President Harris, [594.82 - 596.68]: where the dancing appears to be wrapping up. [604.86 - 607.04]: All right. That's so cool. [607.82 - 609.44]: Oh, man. That felt good. [609.96 - 611.66]: And Donald doesn't think I'm black. [613.56 - 615.20]: Okay, listen up, everyone. [615.74 - 618.62]: We couldn't have gotten here without one man. [619.14 - 621.10]: And his name is, Jabidin. [622.16 - 623.58]: Get on out here, Jabidin. [634.30 - 635.98]: Oh, man. [643.78 - 645.08]: Close. That's right. [646.06 - 649.00]: A lot of people forget I'm president, including me. [649.00 - 652.20]: I guess what? And by the way. [656.90 - 660.20]: I think I did a pretty good job. [661.04 - 663.56]: I passed more bills than any president history. [663.94 - 666.20]: Well, folks, we still got work to Assistant: Assistant:
- Assistant
{ "chapters": [ { "title": "Chaos Unfolds", "start_time": 510.92, "end_time": 530.14, "score": 85 }, { "title": "JD Vance's Introduction", "start_time": 542.68, "end_time": 570.60, "score": 82 }, { "title": "Getting the Crowd Hopped", "start_time": 571.72, "end_time": 596.68, "score": 88 } ] }