Spaces:
Running
on
A100
Running
on
A100
update alg
Browse files
app.py
CHANGED
@@ -86,7 +86,7 @@ class VideoHighlightDetector:
|
|
86 |
def determine_highlights(self, video_description: str, prompt_num: int = 1) -> str:
|
87 |
"""Determine what constitutes highlights based on video description with different prompts."""
|
88 |
system_prompts = {
|
89 |
-
1: "You are a highlight editor. List archetypal dramatic moments that would make compelling highlights if they appear in the video. Each moment should be specific enough to be recognizable but generic enough to potentially exist in
|
90 |
2: "You are a helpful visual-language assistant that can understand videos and edit. You are tasked helping the user to create highlight reels for videos. Highlights should be rare and important events in the video in question."
|
91 |
}
|
92 |
user_prompts = {
|
|
|
86 |
def determine_highlights(self, video_description: str, prompt_num: int = 1) -> str:
|
87 |
"""Determine what constitutes highlights based on video description with different prompts."""
|
88 |
system_prompts = {
|
89 |
+
1: "You are a highlight editor. List archetypal dramatic moments that would make compelling highlights if they appear in the video. Each moment should be specific enough to be recognizable but generic enough to potentially exist in other videos of this type.",
|
90 |
2: "You are a helpful visual-language assistant that can understand videos and edit. You are tasked helping the user to create highlight reels for videos. Highlights should be rare and important events in the video in question."
|
91 |
}
|
92 |
user_prompts = {
|