karalif commited on
Commit
0e88fea
verified
1 Parent(s): 9254b4c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -54,14 +54,14 @@ def analyze_text(icelandic_text):
54
  return analysis_results
55
 
56
  demo = gr.Interface(fn=analyze_text,
57
- inputs=gr.inputs.Textbox(lines=2, placeholder="Enter Icelandic Text Here..."),
58
- outputs=[gr.outputs.Textbox(label="Translated Text"),
59
- gr.outputs.Textbox(label="Sentiment"),
60
- gr.outputs.Textbox(label="Formality"),
61
- gr.outputs.Textbox(label="Toxicity"),
62
- gr.outputs.Textbox(label="Politeness")],
63
- title="Icelandic Text Analysis",
64
- description="This app translates Icelandic text to English and performs sentiment, formality, toxicity, and politeness analysis.")
65
 
66
  if __name__ == "__main__":
67
  demo.launch()
 
54
  return analysis_results
55
 
56
  demo = gr.Interface(fn=analyze_text,
57
+ inputs=gr.Textbox(lines=2, placeholder="Enter Icelandic Text Here..."),
58
+ outputs=[gr.Textbox(label="Translated Text"),
59
+ gr.Textbox(label="Sentiment"),
60
+ gr.Textbox(label="Formality"),
61
+ gr.Textbox(label="Toxicity"),
62
+ gr.Textbox(label="Politeness")],
63
+ title="Icelandic Text Analysis",
64
+ description="This app translates Icelandic text to English and performs sentiment, formality, toxicity, and politeness analysis.")
65
 
66
  if __name__ == "__main__":
67
  demo.launch()