wiraindrak commited on
Commit
af8323b
·
1 Parent(s): 539f475

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -15,9 +15,8 @@ examples = [
15
  ]
16
 
17
  def sentiment_analysis(text):
18
- scores = sid.polarity_scores(text)
19
- del scores["compound"]
20
- return scores
21
 
22
  demo = gr.Interface(
23
  fn=sentiment_analysis,
 
15
  ]
16
 
17
  def sentiment_analysis(text):
18
+ output = sentiment(text)
19
+ return output
 
20
 
21
  demo = gr.Interface(
22
  fn=sentiment_analysis,