ananthujay commited on
Commit
43324c4
·
1 Parent(s): 00a39fe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -6,6 +6,7 @@ nlp = pipeline("sentiment-analysis")
6
  def scoring(text):
7
  results = nlp(text)
8
  sentiment = results[0]['label']
 
9
  return sentiment
10
 
11
  iface = gr.Interface(fn=scoring, inputs="text", outputs="text")
 
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")