Spaces:
Sleeping
Sleeping
Update app.py
Browse files112 unmodified lines1131141151161171181191201211221231241254 unmodified lines1301311321331341351361371381391401411421431 unmodified line1451461471481491501511521531547 unmodified lines162163164165166167168112 unmodified linesoriginal_fre_val = float("nan")return f"""The Flesch Reading Ease score is a numeric measure of text readability,where higher scores indicate easier readability and lower scores indicate more difficult text.In this task, we are trying to rewrite a given text into the target Flesch Reading Ease scoreand preserving the original meaning and information.Given the original draft (Flesch Reading Ease = {original_fre}):[TEXT START]{text}4 unmodified linesFollow the instructions below carefully.Numerous Readability Manipulation- Reduce average sentence length while avoiding uniform or fixed-length sentences.- Introduce natural variation in sentence length to maintain rhythm and avoid mechanical patterns.- Prefer familiar, high-frequency vocabulary.- Use simple and direct sentence structures.- Avoid jargon; if technical terms are necessary, explain them clearly in simple language.- Minimize figurative language, idioms, and expressions whose meanings are not directly inferable.- Maintain a natural flow of reading rather than a sequence of evenly shortened sentences.Qualitative Readability Control・Content preservation1 unmodified line- Do not add new information.- Do not remove important information.- Do not introduce interpretations or opinions that are not present in the original text.・Language modernization- Rewrite the text in clear, modern English.- Remove archaic expressions and unnatural or outdated syntax typical of older texts at all levels.Formatting Constraints・Scope of rewriting7 unmodified lines- Do NOT create new section breaks, chapter divisions, or headings.- Output only the rewritten text.- Do not include explanations, comments, or metadata.- Do not include [TEXT START] and [TEXT END] in the output.""".strip()112 unmodified lines1131141151161171181191201211221231241254 unmodified lines1301311321331341351361371381 unmodified line1401411421431441451461471481491501511521537 unmodified lines161162163164165166167112 unmodified linesoriginal_fre_val = float("nan")return f"""Numerous Readability Manipulation:The Flesch Reading Ease score is a numeric measure of text readability,where higher scores indicate easier readability and lower scores indicate more difficult text.In this task, we are trying to rewrite a given text into the target Flesch Reading Ease score.Given the original draft (Flesch Reading Ease = {original_fre_val}):[TEXT START]{text}4 unmodified linesFollow the instructions below carefully.- Reduce average sentence length while avoiding uniform or fixed-length sentences.- Introduce natural variation in sentence length to maintain rhythm and avoid mechanical patterns.- Prefer familiar, high-frequency vocabulary.Qualitative Readability Control・Content preservation1 unmodified line- Do not add new information.- Do not remove important information.- Do not introduce interpretations or opinions that are not present in the original text.- Avoid jargon; if technical terms are necessary, explain them clearly in simple language.・Clarity & Naturalness Refinement- Rewrite the text in clear, modern English.- Remove archaic expressions and unnatural or outdated syntax typical of older texts at all levels.- Maintain a natural flow of reading rather than a sequence of evenly shortened sentences.- Minimize figurative language, idioms, and expressions whose meanings are not directly inferable.- Use simple and direct sentence structures.Formatting Constraints・Scope of rewriting7 unmodified lines- Do NOT create new section breaks, chapter divisions, or headings.- Output only the rewritten text.- Do not include explanations, comments, or metadata.- Do not include [TEXT START] and [TEXT END] in the output.""".strip()
app.py+9-10