karalif commited on
Commit
f80b079
verified
1 Parent(s): 6f918d6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -44,7 +44,6 @@ def analyze_text(icelandic_text):
44
 
45
  politeness_label, politeness_score = analyze_politeness(translated_text)
46
 
47
- # Combine all analysis results into a single string
48
  analysis_results = f"""
49
  Translated Text: {translated_text}
50
  Sentiment: Label: {sentiment_label}, Score: {round(sentiment_score, 2)}
@@ -58,8 +57,7 @@ demo = gr.Interface(fn=analyze_text,
58
  inputs=gr.Textbox(lines=2, placeholder="Enter Icelandic Text Here..."),
59
  outputs=gr.Textbox(label="Analysis Results"),
60
  title="Icelandic Text Analysis",
61
- description="This app translates Icelandic text to English and performs sentiment, formality, toxicity, and politeness analysis.",
62
- share=True)
63
 
64
  if __name__ == "__main__":
65
- demo.launch()
 
44
 
45
  politeness_label, politeness_score = analyze_politeness(translated_text)
46
 
 
47
  analysis_results = f"""
48
  Translated Text: {translated_text}
49
  Sentiment: Label: {sentiment_label}, Score: {round(sentiment_score, 2)}
 
57
  inputs=gr.Textbox(lines=2, placeholder="Enter Icelandic Text Here..."),
58
  outputs=gr.Textbox(label="Analysis Results"),
59
  title="Icelandic Text Analysis",
60
+ description="This app translates Icelandic text to English and performs sentiment, formality, toxicity, and politeness analysis.")
 
61
 
62
  if __name__ == "__main__":
63
+ demo.launch()