mfarre HF staff commited on
Commit
d78f68b
·
1 Parent(s): 7f59bd0

update alg

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -111,8 +111,8 @@ class VideoHighlightDetector:
111
  def determine_highlights(self, video_description: str, prompt_num: int = 1) -> str:
112
  """Determine what constitutes highlights based on video description with different prompts."""
113
  system_prompts = {
114
- 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 any video of this type.",
115
- 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. Generally, highlights should be relatively rare and important events in the video in question."
116
  }
117
  user_prompts = {
118
  1: "List potential highlight moments to look for in this video:",
 
111
  def determine_highlights(self, video_description: str, prompt_num: int = 1) -> str:
112
  """Determine what constitutes highlights based on video description with different prompts."""
113
  system_prompts = {
114
+ 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.",
115
+ 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."
116
  }
117
  user_prompts = {
118
  1: "List potential highlight moments to look for in this video:",