amaldevc commited on
Commit
9cb7408
·
verified ·
1 Parent(s): 852da30

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -5,7 +5,7 @@ pipe = pipeline(task="sentiment-analysis", model="amaldevc/nlp_sentiment")
5
 
6
  def predict(review):
7
  pred = pipe.predict(review)
8
- return p["label"] + " with score " + p["score"]
9
 
10
  iface = gr.Interface(fn=predict, inputs="text", outputs="text")
11
  iface.launch()
 
5
 
6
  def predict(review):
7
  pred = pipe.predict(review)
8
+ return pred["label"] + " with score " + pred["score"]
9
 
10
  iface = gr.Interface(fn=predict, inputs="text", outputs="text")
11
  iface.launch()