b22ee075 commited on
Commit
c6bc880
·
verified ·
1 Parent(s): 0604ab7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -27,10 +27,10 @@ def classify_sentiment(text):
27
  return sentiment_label, "sentiment_probabilities.png"
28
 
29
  # Input and output components for the interface
30
- inputs = gr.inputs.Textbox(lines=10, label="Enter the text you want to analyze:")
31
  outputs = [
32
- gr.outputs.Textbox(label="Sentiment Prediction"),
33
- gr.outputs.Image(label="Sentiment Probability Distribution")
34
  ]
35
 
36
  # Create the Gradio interface
 
27
  return sentiment_label, "sentiment_probabilities.png"
28
 
29
  # Input and output components for the interface
30
+ inputs = gr.Textbox(lines=10, label="Enter the text you want to analyze:")
31
  outputs = [
32
+ gr.Textbox(label="Sentiment Prediction"),
33
+ gr.Image(label="Sentiment Probability Distribution")
34
  ]
35
 
36
  # Create the Gradio interface