Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -81,7 +81,7 @@ def full_analysis(text, mode, detail_mode, count, history, clarity_scores):
|
|
81 |
{"Write a concise paragraph." if detail_mode == "Normal" else "Write a detailed explanation over multiple paragraphs."}
|
82 |
"""
|
83 |
|
84 |
-
explanation_en =
|
85 |
explanation_fr = translator_to_fr(explanation_en, max_length=512)[0]['translation_text']
|
86 |
|
87 |
clarity_score = textstat.flesch_reading_ease(explanation_en)
|
|
|
81 |
{"Write a concise paragraph." if detail_mode == "Normal" else "Write a detailed explanation over multiple paragraphs."}
|
82 |
"""
|
83 |
|
84 |
+
explanation_en = call_zephyr_api(prompt)
|
85 |
explanation_fr = translator_to_fr(explanation_en, max_length=512)[0]['translation_text']
|
86 |
|
87 |
clarity_score = textstat.flesch_reading_ease(explanation_en)
|