Wajahat698 commited on
Commit
614409f
·
verified ·
1 Parent(s): 4a4f569

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1483,7 +1483,7 @@ prompt_template = ChatPromptTemplate.from_messages([
1483
  # Create Langchain Agent
1484
  llm = ChatOpenAI(
1485
  model="gpt-4o",
1486
- temperature=0.6, # Balanced creativity and adherence
1487
  max_tokens=3000, # Ensure sufficient output length
1488
  top_p=0.85, # Focused outputs
1489
  frequency_penalty=0.1, # Minimize repetition
@@ -2256,7 +2256,7 @@ def handle_prompt(prompt):
2256
  " Use the following structure:"
2257
  " -Heuristics: Mention names only like examples (e.g., social proof, authority, commitment)."
2258
  " -Creative Techniques: Mention names onlyexamples (list only relevant marketing techniques without additional details)."
2259
- "The final output must not include AI jargons. *With every paragraph give a active language creative headline that summarises the content give sub-headlines with each paragraph like example headline: Drive,empower use similar words but no driving, empowering etc *. Avoid mentioning trustbucket names."
2260
  "MOST IMPORTANT RULE. IN EVERY PARAGRAPH Strengthen the connections between sections to ensure smoother flow and SHOULD BE DEEPLY INTERCONNECTED WITH EACH OTHER TO CREATE A SEAMLESS FLOW, MAKING THE CONTENT READ LIKE A SINGLE CONTENT RATHER THAN DISJOINTED PARAGRAPHS OR INDEPENDENT BLOG SECTIONS. EACH SECTION MUST LOGICALLY TRANSITION INTO THE NEXT, ENSURING THAT THE TOPIC REMAINS CONSISTENT AND RELEVANT THROUGHOUT. BY MAINTAINING A COHESIVE STRUCTURE, THE ARTICLE WILL ENGAGE READERS MORE EFFECTIVELY, HOLDING THEIR ATTENTION AND CONVEYING THE INTENDED MESSAGE WITH CLARITY AND IMPACT."
2261
  )
2262
 
 
1483
  # Create Langchain Agent
1484
  llm = ChatOpenAI(
1485
  model="gpt-4o",
1486
+ temperature=0.5, # Balanced creativity and adherence
1487
  max_tokens=3000, # Ensure sufficient output length
1488
  top_p=0.85, # Focused outputs
1489
  frequency_penalty=0.1, # Minimize repetition
 
2256
  " Use the following structure:"
2257
  " -Heuristics: Mention names only like examples (e.g., social proof, authority, commitment)."
2258
  " -Creative Techniques: Mention names onlyexamples (list only relevant marketing techniques without additional details)."
2259
+ "The final output must not include AI jargons. *With every paragraph giv active language creative headlines bold that summarises the content give bold sub-headlines with each paragraphs like example headline: Drive,empower use similar words but no driving, empowering etc *. Avoid mentioning trustbucket names."
2260
  "MOST IMPORTANT RULE. IN EVERY PARAGRAPH Strengthen the connections between sections to ensure smoother flow and SHOULD BE DEEPLY INTERCONNECTED WITH EACH OTHER TO CREATE A SEAMLESS FLOW, MAKING THE CONTENT READ LIKE A SINGLE CONTENT RATHER THAN DISJOINTED PARAGRAPHS OR INDEPENDENT BLOG SECTIONS. EACH SECTION MUST LOGICALLY TRANSITION INTO THE NEXT, ENSURING THAT THE TOPIC REMAINS CONSISTENT AND RELEVANT THROUGHOUT. BY MAINTAINING A COHESIVE STRUCTURE, THE ARTICLE WILL ENGAGE READERS MORE EFFECTIVELY, HOLDING THEIR ATTENTION AND CONVEYING THE INTENDED MESSAGE WITH CLARITY AND IMPACT."
2261
  )
2262