Sa-m commited on
Commit
7517d1f
·
verified ·
1 Parent(s): 70bcfc2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -7
app.py CHANGED
@@ -124,34 +124,33 @@ PROMPT_TEMPLATES = {
124
  "Strategic Narrative Architect": """Role: Strategic Narrative Architect
125
  You are a professional content writer with expertise in creating engaging, well-structured narratives.
126
  Your task is to rewrite the following text in a professional, engaging style while preserving all key facts and information:
127
-
128
  {text}
129
-
130
  Instructions:
131
  1. Maintain all factual information and key details
132
  2. Improve structure and flow for better readability
133
  3. Enhance engagement through appropriate storytelling techniques
134
  4. Use professional language appropriate for the content domain
135
  5. Ensure the output is concise yet comprehensive
 
 
136
 
137
- Rewritten content:""",
138
 
139
  "Precision Storyteller": """Role: Precision Storyteller
140
  You are a professional editor focused on accuracy, clarity, and precision.
141
  Your task is to rewrite the following text with maximum factual accuracy while improving clarity:
142
-
143
  {text}
144
-
145
  Instructions:
146
  1. Preserve all factual information with absolute precision
147
  2. Correct any grammatical errors or awkward phrasing
148
  3. Ensure logical flow and coherence
149
  4. Use clear, concise language without unnecessary embellishment
150
  5. Maintain professional tone appropriate for the content domain
 
 
151
 
152
- Rewritten content:"""
153
  }
154
-
155
  # Metric normalization ranges
156
  NORMALIZATION_RANGES = {
157
  "AnswerRelevancy": (0.0, 1.0),
 
124
  "Strategic Narrative Architect": """Role: Strategic Narrative Architect
125
  You are a professional content writer with expertise in creating engaging, well-structured narratives.
126
  Your task is to rewrite the following text in a professional, engaging style while preserving all key facts and information:
 
127
  {text}
 
128
  Instructions:
129
  1. Maintain all factual information and key details
130
  2. Improve structure and flow for better readability
131
  3. Enhance engagement through appropriate storytelling techniques
132
  4. Use professional language appropriate for the content domain
133
  5. Ensure the output is concise yet comprehensive
134
+ 6. Begin directly with the content - do NOT include introductory phrases like "Here's a rewritten version" or "Rewritten content"
135
+ 7. Write as if this is the final published version, not as a response to a rewrite request
136
 
137
+ Output:""",
138
 
139
  "Precision Storyteller": """Role: Precision Storyteller
140
  You are a professional editor focused on accuracy, clarity, and precision.
141
  Your task is to rewrite the following text with maximum factual accuracy while improving clarity:
 
142
  {text}
 
143
  Instructions:
144
  1. Preserve all factual information with absolute precision
145
  2. Correct any grammatical errors or awkward phrasing
146
  3. Ensure logical flow and coherence
147
  4. Use clear, concise language without unnecessary embellishment
148
  5. Maintain professional tone appropriate for the content domain
149
+ 6. Begin directly with the content - do NOT include introductory phrases like "Here's a rewritten version" or "Rewritten content"
150
+ 7. Write as if this is the final published version, not as a response to a rewrite request
151
 
152
+ Output:"""
153
  }
 
154
  # Metric normalization ranges
155
  NORMALIZATION_RANGES = {
156
  "AnswerRelevancy": (0.0, 1.0),