Saravanan666 commited on
Commit
b60671f
1 Parent(s): e46a7de
Files changed (1) hide show
  1. app.py +9 -0
app.py ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+ from transformers import pipeline
3
+ pipe = pipeline('sentiment-analysis')
4
+
5
+ text = st.text_area('Enter your text here!')
6
+
7
+ if text:
8
+ out = pipe(text)
9
+ st.json(out)