Suhaib-27 commited on
Commit
0792338
·
verified ·
1 Parent(s): 90c91ee

Create test.py

Browse files
Files changed (1) hide show
  1. test.py +9 -0
test.py ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+ from transformers import pipeline
3
+
4
+ classifier = pipeline("sentiment-analysis")
5
+ text = st.text_enter("Enter your text")
6
+
7
+ if text :
8
+ out = classifier(text)
9
+ st.json(out)