ananthujay commited on
Commit
378efab
·
1 Parent(s): a1a03f3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -6,9 +6,9 @@ nlp = pipeline("sentiment-analysis")
6
  def scoring(text):
7
  results = nlp(text)
8
  sentiment = results[0]['label']
9
- score = results[0]['score']
10
- return score
11
 
12
- iface = gr.Interface(fn=scoring, inputs="text", outputs="number")
13
 
14
  iface.launch()
 
6
  def scoring(text):
7
  results = nlp(text)
8
  sentiment = results[0]['label']
9
+
10
+ return sentiment
11
 
12
+ iface = gr.Interface(fn=scoring, inputs="text", outputs="text")
13
 
14
  iface.launch()