Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
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()
|