amaldevc commited on
Commit
bd343e8
·
verified ·
1 Parent(s): 1c878cf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -4,7 +4,7 @@ from transformers import pipeline
4
  pipe = pipeline(task="sentiment-analysis", model="amaldevc/nlp_sentiment")
5
 
6
  def predict(review):
7
- pipe.predict(review)
8
 
9
  iface = gr.Interface(fn=predict, inputs="text", outputs="text")
10
  iface.launch()
 
4
  pipe = pipeline(task="sentiment-analysis", model="amaldevc/nlp_sentiment")
5
 
6
  def predict(review):
7
+ return pipe.predict(review)
8
 
9
  iface = gr.Interface(fn=predict, inputs="text", outputs="text")
10
  iface.launch()