sujitb commited on
Commit
589c9b1
1 Parent(s): 22b9114
Files changed (1) hide show
  1. app.py +12 -0
app.py ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+ import transformers
3
+ from transformers import pipeline
4
+
5
+ pipe= pipeline('sentiment-analysis')
6
+
7
+ text = st.textarea('Enter some text')
8
+
9
+ if text:
10
+ out= pipe(text)
11
+ st.json(out)
12
+