filipeclduarte commited on
Commit
acbd829
·
1 Parent(s): 27c58a5

Create inference.py

Browse files
Files changed (1) hide show
  1. inference.py +6 -0
inference.py ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ from transformers import pipeline
2
+
3
+ sentiment_pipeline = pipeline("sentiment-analysis")
4
+
5
+ def predict(data):
6
+ sentiment_pipeline(data)