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
[0.00 - 4.10]: Ladies and gentlemen, Nate, Mark Guessi! [4.68 - 6.00]: -♪ -♪ [9.50 - 9.60]: -♪ [9.60 - 10.62]: -♪ [10.62 - 11.12]: -♪ [18.44 - 24.68]: Thank you. Thank you very much. [24.92 - 26.18]: It's very nice. [26.86 - 30.10]: Very excited to be back to Saturday Night Live. [30.28 - 30.88]: It's crazy. [31.92 - 32.82]: It's crazy. [34.68 - 38.06]: I, you know, from Nashville, went to... [38.06 - 39.96]: Look at us. Yeah. [40.12 - 41.12]: We had a big day today. [42.92 - 45.72]: We, I'm a, uh, went to community college, [45.72 - 48.48]: and it's a big deal. [49.62 - 50.58]: There is... [50.58 - 52.52]: Community college, a lot of people do not know this, [52.78 - 54.74]: but community college is college when they're like, [54.74 - 56.68]: you're probably staying in your community. [57.58 - 58.02]: So... [58.64 - 61.24]: We're gonna show you the ropes around town, [61.46 - 63.86]: kind of give you just a lay of the land. [65.24 - 66.74]: I took all remedial classes. [67.18 - 69.08]: I was there one year of zero credits. [69.46 - 70.30]: I was there the whole time. [70.58 - 71.24]: It's not good. [72.60 - 77.34]: I took speech as a class in college. [77.50 - 78.72]: I drove there with my friends. [78.96 - 80.00]: They were going to real classes, [80.84 - 83.20]: and they go, like, business math or something. [83.20 - 84.82]: I don't even know what a class is called, [85.18 - 86.40]: because I was like, I'm going to speech. [86.58 - 88.04]: I think I'm a different part of the campus. [90.20 - 91.46]: We stay in the same room, [91.58 - 92.56]: and our teachers rotate. [92.78 - 93.52]: How about you guys? [99.82 - 101.54]: I still say a lot of word wrong, too. [101.64 - 103.62]: That's what I don't, like, with speech. [104.28 - 105.06]: Like, help me out. [105.72 - 107.42]: I say the word all. [107.88 - 108.42]: Like, all. [108.74 - 109.22]: Like, oil. [110.00 - 111.14]: I don't even know how to... [111.14 - 111.84]: O-I-L. [112.40 - 113.14]: O-E-L. [113.36 - 114.02]: Motor oil. [114.46 - 114.66]: Oil. [115.46 - 116.04]: Fix that. [117.94 - 119.10]: Southern Community College. [119.20 - 121.42]: This should be mandatory that they fix that. [121.88 - 123.84]: This should write O-I-L on the board. [124.34 - 125.10]: And they say that. [125.28 - 125.86]: I go, all. [126.86 - 127.38]: I go, all right. [127.48 - 128.32]: We're going to take care of that. [128.76 Assistant: Assistant:
- Assistant
{ "chapters": [ { "title": "Funny Community College Story", "start_time": 40.12, "end_time": 66.74, "score": 85 }, { "title": "Speech Class Anecdote", "start_time": 72.6, "end_time": 101.54, "score": 90 } ] }