Wisdom882 commited on
Commit
460c2eb
·
1 Parent(s): 4d1f20c

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -0
app.py ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+ from transformers import pipeline
3
+
4
+ pipe = pipeline('sentiment-analysis')
5
+
6
+ st.title("Sentiment Analysis")
7
+ text = st.text_area('Enter some text in the box below!')
8
+
9
+ if text:
10
+ out = pipe(text)
11
+ st.json(out)