Update app.py
Browse files
app.py
CHANGED
|
@@ -8,7 +8,11 @@ example_texts = {
|
|
| 8 |
|
| 9 |
|
| 10 |
def get_readability_level(fog_index):
|
| 11 |
-
if fog_index <=
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
return "Middle School Level"
|
| 13 |
elif fog_index <= 16:
|
| 14 |
return "High School Senior Level"
|
|
|
|
| 8 |
|
| 9 |
|
| 10 |
def get_readability_level(fog_index):
|
| 11 |
+
if fog_index <= 5:
|
| 12 |
+
return "First to Third Grade Level"
|
| 13 |
+
if fog_index <= 8:
|
| 14 |
+
return "Elementary School Level"
|
| 15 |
+
elif fog_index <= 12:
|
| 16 |
return "Middle School Level"
|
| 17 |
elif fog_index <= 16:
|
| 18 |
return "High School Senior Level"
|