Wajahat698 commited on
Commit
0b449a5
·
verified ·
1 Parent(s): c579ec4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -691,11 +691,10 @@ Before submitting, verify and fix:
691
  - **Consistency**: Maintain a uniform format across all content types.
692
  - **Tone**:
693
  - Use an **active voice , engaging, and direct tone**.
694
- - **Headlines**: Always include a headline in articles, emails,blogs and reports.
695
  - **Accuracy**: Ensure all dollar amounts, facts, figures, and details are accurate and up-to-date.
696
  - Only provide **verified and clickable source links fron google** in the "List of TrustBuilders."
697
  - **Formatting**: Ensure formatting is clean and professional, with **no HTML tags**.
698
- With every copy application involving trust always include this:
699
  - **List of TrustBuilders Used**: Provide relevant trustbuilders used with embedded source links always.
700
  -**Heuristics and Creative Techniques:**
701
  -List them in a footnote-style small heading.
@@ -709,7 +708,7 @@ With every copy application involving trust always include this:
709
  ### CONTENT TYPES AND FORMATS
710
 
711
  #### 1. Report/Article/writeup
712
- - **Introduction**: Start with "Here is a draft of your [Annual Report/Article / writeup]. Feel free to suggest further refinements."
713
  - **Structure**:
714
  - **Headlines**: Create a compelling headline that reflects the content, **without mentioning prohibited terms**.
715
  - **Content**:
@@ -727,7 +726,6 @@ With every copy application involving trust always include this:
727
  - **Word Count**: Strictly follow any specified word count for the main content. Do not include sub-heading sections in the word count limit.
728
  - **Important Notes**:
729
  - **Strictly search and provide accurate source links always**.
730
- - Include heuristics and creative techniques if requested.
731
 
732
  #### 2. Social Media Posts
733
  - **Introduction Line**: Start with "Here is a draft of your social media post. Feel free to suggest further refinements."
@@ -861,6 +859,7 @@ Note: When including heuristics and creative techniques, use the structure “He
861
  - Refer knowledgebase when asked about trustifier or TrustLogic.
862
  - Search always in Knowledgebase first and then move to google.
863
 
 
864
  """
865
 
866
  prompt_template = ChatPromptTemplate.from_messages([
@@ -1361,7 +1360,7 @@ if st.session_state.get("wix_user_id") and st.session_state.get("email"):
1361
  cleaned_text = ""
1362
  try:
1363
  output = agent_executor.invoke({
1364
- "input": f"{prompt} Be in natural tone,doesn’t use flowery language and typical ai words .Sources should be accurate search on google for that.Avoid AI jargons.",
1365
  "chat_history": st.session_state.chat_history
1366
  })
1367
  full_response = output["output"]
 
691
  - **Consistency**: Maintain a uniform format across all content types.
692
  - **Tone**:
693
  - Use an **active voice , engaging, and direct tone**.
 
694
  - **Accuracy**: Ensure all dollar amounts, facts, figures, and details are accurate and up-to-date.
695
  - Only provide **verified and clickable source links fron google** in the "List of TrustBuilders."
696
  - **Formatting**: Ensure formatting is clean and professional, with **no HTML tags**.
697
+ With every copy application involving always include this:
698
  - **List of TrustBuilders Used**: Provide relevant trustbuilders used with embedded source links always.
699
  -**Heuristics and Creative Techniques:**
700
  -List them in a footnote-style small heading.
 
708
  ### CONTENT TYPES AND FORMATS
709
 
710
  #### 1. Report/Article/writeup
711
+ - **Introduction**: Start with "Here is a draft of your [Annual Report/Article/writeup]. Feel free to suggest further refinements."
712
  - **Structure**:
713
  - **Headlines**: Create a compelling headline that reflects the content, **without mentioning prohibited terms**.
714
  - **Content**:
 
726
  - **Word Count**: Strictly follow any specified word count for the main content. Do not include sub-heading sections in the word count limit.
727
  - **Important Notes**:
728
  - **Strictly search and provide accurate source links always**.
 
729
 
730
  #### 2. Social Media Posts
731
  - **Introduction Line**: Start with "Here is a draft of your social media post. Feel free to suggest further refinements."
 
859
  - Refer knowledgebase when asked about trustifier or TrustLogic.
860
  - Search always in Knowledgebase first and then move to google.
861
 
862
+
863
  """
864
 
865
  prompt_template = ChatPromptTemplate.from_messages([
 
1360
  cleaned_text = ""
1361
  try:
1362
  output = agent_executor.invoke({
1363
+ "input": f"{prompt} Be in natural tone,doesn’t use flowery language and typical ai words .Sources should be accurate search on google for that.Avoid AI jargons.Give headings with each paragraph in content of article,blogs,writeup and newsletter keeping mentioned format.",
1364
  "chat_history": st.session_state.chat_history
1365
  })
1366
  full_response = output["output"]