Anki2004 commited on
Commit
396269e
·
verified ·
1 Parent(s): fd9cf18

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -0
app.py CHANGED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+ from transformers import pipeline
3
+
4
+ pipe = pipeline("sentiment-Analysis")
5
+ text = st.text_area("Enter some text")
6
+ if text:
7
+ out = pipe(text)
8
+ st.json(out
9
+ )