Unggi commited on
Commit
791d80a
1 Parent(s): da87bfd

change instruction

Browse files
Files changed (1) hide show
  1. src/obs_eval.py +10 -1
src/obs_eval.py CHANGED
@@ -44,11 +44,20 @@ def main(config):
44
 
45
  # Skipping the display part as it's not relevant in a .py script
46
 
 
 
 
 
 
 
 
 
 
47
  PROMPT_MESSAGES = [
48
  {
49
  "role": "user",
50
  "content": [
51
- "These are frames of a video. Create a short voiceover script in the style of a super excited brazilian sports narrator who is narrating his favorite match. He is a big fan of Messi, the player who scores in this clip. Use caps and exclamation marks where needed to communicate excitement. Only include the narration, your output must be in english. When the ball goes into the net, you must scream GOL either once or multiple times.",
52
  *map(lambda x: {"image": x, "resize": 768}, base64Frames[0::10]),
53
  ],
54
  },
 
44
 
45
  # Skipping the display part as it's not relevant in a .py script
46
 
47
+ INSTRUCTOIN = " ".join(
48
+ "These are frames of a video.",
49
+ "Create a short voiceover script in the style of a super excited brazilian sports narrator who is narrating his favorite match.",
50
+ "He is a big fan of Messi, the player who scores in this clip.",
51
+ "Use caps and exclamation marks where needed to communicate excitement.",
52
+ "Only include the narration, your output must be in english.",
53
+ "When the ball goes into the net, you must scream GOL either once or multiple times."
54
+ )
55
+
56
  PROMPT_MESSAGES = [
57
  {
58
  "role": "user",
59
  "content": [
60
+ INSTRUCTOIN,
61
  *map(lambda x: {"image": x, "resize": 768}, base64Frames[0::10]),
62
  ],
63
  },