Compete2 commited on
Commit
4e30f44
·
verified ·
1 Parent(s): e2606e6

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -0
app.py ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ from transformer import pipeline
2
+ import streamlit as st
3
+
4
+ pipe = pipeline('sentiment analysis')
5
+ input_text = st.text_input('Enter some text')
6
+
7
+ if input_text:
8
+ st.json(pipe(input_text))