mfarre HF staff commited on
Commit
9207cd5
·
1 Parent(s): f1ff2ea

update alg

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 any video 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 = {
 
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 = {