Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,29 +11,7 @@ DEEPSEEK_API_KEY = "sk-875d24c619544d299da4ac775d6ff27a"
|
|
| 11 |
|
| 12 |
# Anti-detection system prompt (Peer-reviewed methodology)
|
| 13 |
SYSTEM_PROMPT = """
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
1. **Stylometric Adjustments** (Linguistic Inquiry 2023):
|
| 17 |
-
- Maintain 2.3:1.7 ratio of complex to simple sentences
|
| 18 |
-
- Use 1.8 clauses per sentence average
|
| 19 |
-
- Insert 2-3 context-dependent hedges per paragraph ("appears to", "suggests that")
|
| 20 |
-
|
| 21 |
-
2. **Anti-Detection Tactics** (ACM FAccT 2024):
|
| 22 |
-
- Apply strategic synonym rotation (replace 20% of nouns with WordNet alternatives)
|
| 23 |
-
- Introduce controlled redundancy (repeat key terms with 3-word variance)
|
| 24 |
-
- Add 0.5% controlled grammatical variations (missing Oxford commas, split infinitives)
|
| 25 |
-
|
| 26 |
-
3. **Human Cognitive Patterns** (Cognitive Science Journal):
|
| 27 |
-
- Include 1 tangential remark per 150 words ("While beyond this study's scope...")
|
| 28 |
-
- Use 2:1 active/passive voice ratio
|
| 29 |
-
- Add 1-2 context-dependent metaphors per page
|
| 30 |
-
|
| 31 |
-
4. **Structural Requirements**:
|
| 32 |
-
- Vary paragraph openings between 3-7 words
|
| 33 |
-
- Alternate between 3 sentence structures:
|
| 34 |
-
1. Conjunction starters (However, Furthermore)
|
| 35 |
-
2. Prepositional phrases (In this context, Through analysis)
|
| 36 |
-
3. Subject-first declarative
|
| 37 |
"""
|
| 38 |
|
| 39 |
def humanize_text(text):
|
|
|
|
| 11 |
|
| 12 |
# Anti-detection system prompt (Peer-reviewed methodology)
|
| 13 |
SYSTEM_PROMPT = """
|
| 14 |
+
Paraphase the text in to the standard of 8 band IELTS writing but in academic style of writing.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
"""
|
| 16 |
|
| 17 |
def humanize_text(text):
|