karalif commited on
Commit
d218242
verified
1 Parent(s): 1998d95

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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: {round(formality_score, 2)}, 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
  )
 
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
  )