Update app.py
Browse files
app.py
CHANGED
@@ -17,12 +17,12 @@ def analyze_sentiment(text, language):
|
|
17 |
iface = gr.Interface(
|
18 |
fn=analyze_sentiment,
|
19 |
inputs=[
|
20 |
-
gr.
|
21 |
-
gr.
|
22 |
],
|
23 |
outputs=[
|
24 |
-
gr.
|
25 |
-
gr.
|
26 |
],
|
27 |
title="Sentiment Analysis",
|
28 |
description="Analyze the sentiment of text in English and Arabic."
|
|
|
17 |
iface = gr.Interface(
|
18 |
fn=analyze_sentiment,
|
19 |
inputs=[
|
20 |
+
gr.Textbox(label="Enter text"),
|
21 |
+
gr.Radio(choices=["English", "Arabic"], label="Select Language")
|
22 |
],
|
23 |
outputs=[
|
24 |
+
gr.Label(label="Sentiment"),
|
25 |
+
gr.Number(label="Confidence Score")
|
26 |
],
|
27 |
title="Sentiment Analysis",
|
28 |
description="Analyze the sentiment of text in English and Arabic."
|