Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -55,7 +55,7 @@ def analyze_text(icelandic_text):
|
|
55 |
analysis_results = (
|
56 |
f"Translated Text: {translated_text}\n\n"
|
57 |
f"Sentiment: Label: {sentiment_label}, Score: {round(sentiment_score, 2)}\n"
|
58 |
-
f"Formality: Label: {
|
59 |
f"Toxicity: Label: {toxicity_label}, Score: {round(toxicity_results['score'], 2)}\n"
|
60 |
f"Politeness: Label: {politeness_label}, Score: {round(politeness_score, 2)}"
|
61 |
)
|
|
|
55 |
analysis_results = (
|
56 |
f"Translated Text: {translated_text}\n\n"
|
57 |
f"Sentiment: Label: {sentiment_label}, Score: {round(sentiment_score, 2)}\n"
|
58 |
+
f"Formality: Label: {formality_label}, Score: {round(formality_score, 2)}\n"
|
59 |
f"Toxicity: Label: {toxicity_label}, Score: {round(toxicity_results['score'], 2)}\n"
|
60 |
f"Politeness: Label: {politeness_label}, Score: {round(politeness_score, 2)}"
|
61 |
)
|