adjustments to old prompt
Browse files
app.py
CHANGED
@@ -88,15 +88,15 @@ class VideoHighlightDetector:
|
|
88 |
messages = [
|
89 |
{
|
90 |
"role": "system",
|
91 |
-
"content": [{"type": "text", "text": "You are a professional video editor specializing in creating viral highlight reels."}]
|
92 |
},
|
93 |
{
|
94 |
"role": "user",
|
95 |
-
"content": [{"type": "text", "text": f"""
|
96 |
|
97 |
{video_description}
|
98 |
|
99 |
-
|
100 |
}
|
101 |
]
|
102 |
|
@@ -118,7 +118,7 @@ class VideoHighlightDetector:
|
|
118 |
"role": "user",
|
119 |
"content": [
|
120 |
{"type": "video", "path": video_path},
|
121 |
-
{"type": "text", "text": f"""Do you see any of the following types of highlight moments in
|
122 |
|
123 |
Potential highlights to look for:
|
124 |
{highlight_types}
|
|
|
88 |
messages = [
|
89 |
{
|
90 |
"role": "system",
|
91 |
+
"content": [{"type": "text", "text": "You are a professional video editor specializing in creating viral highlight reels. You understand that the most engaging highlights are brief and focus only on exceptional moments that are statistically rare or particularly dramatic. For sports content, you typically select only 3-5 of the most remarkable moments that would make viewers say 'I can't believe that happened!"}]
|
92 |
},
|
93 |
{
|
94 |
"role": "user",
|
95 |
+
"content": [{"type": "text", "text": f"""Here is a description of a video::
|
96 |
|
97 |
{video_description}
|
98 |
|
99 |
+
Based on this description, list which rare segments should be included in a best of the best highlight."""}]
|
100 |
}
|
101 |
]
|
102 |
|
|
|
118 |
"role": "user",
|
119 |
"content": [
|
120 |
{"type": "video", "path": video_path},
|
121 |
+
{"type": "text", "text": f"""Do you see any of the following types of highlight moments in these frames?
|
122 |
|
123 |
Potential highlights to look for:
|
124 |
{highlight_types}
|