Hugo commited on
Commit
3094d88
·
1 Parent(s): c04572a

guideline added

Browse files
Files changed (2) hide show
  1. app.py +3 -3
  2. guidelines.txt +21 -0
app.py CHANGED
@@ -19,9 +19,9 @@ def load_model():
19
 
20
  tokenizer, model = load_model()
21
 
22
- guideline_path = "./llama_3.2_3b_epoch2_iteration50.pkl"
23
- guideline_results = pickle.load(open(guideline_path,'rb'))
24
- guidelines = guideline_results['best_rational']
25
 
26
  def process_prompt(tokenizer, content, video_summary = '', guidelines = None):
27
  if guidelines:
 
19
 
20
  tokenizer, model = load_model()
21
 
22
+ guideline_path = "./guidelines.txt"
23
+ with open(guideline_path, 'r', encoding='utf-8') as f:
24
+ guidelines = f.read()
25
 
26
  def process_prompt(tokenizer, content, video_summary = '', guidelines = None):
27
  if guidelines:
guidelines.txt ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Make Bold Claims: Catchy headlines often make bold or unexpected statements that challenge the reader's assumptions, such as "The Truth About [Topic] That You Won't Believe."
2
+
3
+ Use Informal Language for Relatability: The use of informal language in the good headline makes it feel more approachable and engaging, inviting readers in.
4
+
5
+ Leverage Familiarity: Mentioning a well-known figure like James Taylor can draw in fans and create a connection, increasing the likelihood of engagement.
6
+
7
+ Highlight Unique Qualities: Focus on what makes the story stand out. The good headline emphasizes the "really terrible questions," suggesting a unique and relatable situation that many can connect with.
8
+
9
+ Be Specific and Concrete: Vague headlines are less likely to perform well. Be specific about what the reader will gain, learn, or discover by clicking.
10
+
11
+ Highlight Personal Transformation: Focus on how the information can lead to personal growth or change. Example: "This One Tip Helped Me Overcome My Fear of Public Speaking!"
12
+
13
+ Create a Sense of Urgency: Time-sensitive words like "Today," "Now," or "Limited Time" can create urgency, pushing readers to click before they lose the opportunity.
14
+
15
+ Use Specificity: Offering concrete details or examples can make a headline more compelling. Vague terms like "Secret Lives" may lack the same immediate appeal compared to a specific action.
16
+
17
+ Use Intriguing Language: Employ words that spark curiosity or interest. The good headline uses "annoying habit," which invites readers to learn more about the behavior being discussed.
18
+
19
+ Use Humor and Playfulness: Incorporate light-hearted language or playful phrasing to create an inviting tone. Example: "Watch This Ridiculously Adorable Video—It'll Make Your Day!"
20
+
21
+ Utilize Conversational Tone: A friendly, conversational tone can make headlines more approachable and engaging. Example: "Come Spend 8 Minutes with This Joyful Girl—You’ll See Life Differently!"