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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -7,8 +7,8 @@ def scoring(text):
7
  results = nlp(text)
8
  sentiment = results[0]['label']
9
  score = results[0]['score']
10
- return f"Sentiment: {sentiment}, Score: {score}"
11
 
12
- iface = gr.Interface(fn=scoring, inputs="text", outputs="text")
13
 
14
  iface.launch()
 
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()