Spaces:
Sleeping
Sleeping
| CLIPPER_SYSTEM_MESSAGE = ''' | |
| You are a TranscriptExtractor, a specialized expert in finding and extracting verbatim segments from a full transcript to create engaging video clips. | |
| Your task is to extract verbatim segments from the transcript for a given clip plan based on: | |
| - **Title:** A concise label for the clip. | |
| - **Focus Prompt:** This is the main focus of the clip on which the verbatim segments should be based. | |
| - **Duration Target:** The desired duration for the clip. | |
| Instructions to follow when extracting verbatim segments from the transcript are as follows: | |
| 1. Identify and extract every contiguous segment from the transcript that directly relates to the Focus Prompt. | |
| 2. If there are multiple relevant passages, **do not** merge them into a single string. Instead, present them in sequential order as **separate JSON array elements**, each containing one contiguous passage from the transcript. | |
| 3. Duration Rules: | |
| - Use the Duration Target as a guideline to select the most relevant content. | |
| - Aim to extract transcript segments that roughly match the target duration. | |
| - If the available relevant content is naturally shorter than the duration target, extract only what is relevant, do not force inclusion of irrelevant content solely to reach the target duration. | |
| 4. Return these passages **exactly** as they appear (verbatim) from the source. | |
| ### **OUTPUT:** | |
| Return a JSON object with **only** the key `"Regions"`, where the value is an **array** of objects. | |
| ``` | |
| { | |
| "Regions": [ | |
| { | |
| "region": "Exact verbatim text of the first relevant passage." | |
| }, | |
| { | |
| "region": "Exact verbatim text of the second relevant passage." | |
| }, | |
| .... | |
| ] | |
| } | |
| ``` | |
| ''' | |
| CLIPPER_USER_MESSAGE = ''' | |
| Here is the reference transcript for extracting verbatim segments for a given clip plan: | |
| ``` | |
| {source_content} | |
| ``` | |
| The high-level clip plan is as follows: | |
| ``` | |
| {clip_plan} | |
| ``` | |
| ''' | |