Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -68,7 +68,7 @@ def load_text(path: str) -> str:
|
|
| 68 |
# 書き換え(プロンプト同一)
|
| 69 |
# =========================
|
| 70 |
def rewrite_level(text: str, target_level: int) -> str:
|
| 71 |
-
level_to_flesch = {1: 90, 2:
|
| 72 |
target_flesch = level_to_flesch[int(target_level)]
|
| 73 |
|
| 74 |
prompt = f"""
|
|
|
|
| 68 |
# 書き換え(プロンプト同一)
|
| 69 |
# =========================
|
| 70 |
def rewrite_level(text: str, target_level: int) -> str:
|
| 71 |
+
level_to_flesch = {1: 90, 2: 75, 3: 65, 4: 55, 5: 40}
|
| 72 |
target_flesch = level_to_flesch[int(target_level)]
|
| 73 |
|
| 74 |
prompt = f"""
|