DemahAlmutairi commited on
Commit
b886a36
·
verified ·
1 Parent(s): 25dd459

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -17,12 +17,12 @@ def analyze_sentiment(text, language):
17
  iface = gr.Interface(
18
  fn=analyze_sentiment,
19
  inputs=[
20
- gr.inputs.Textbox(label="Enter text"),
21
- gr.inputs.Radio(choices=["English", "Arabic"], label="Select Language")
22
  ],
23
  outputs=[
24
- gr.outputs.Label(label="Sentiment"),
25
- gr.outputs.Number(label="Confidence Score")
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."