roshithindia commited on
Commit
958535c
·
1 Parent(s): 941686d

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
+ st.header('Sentiment Analysis')
5
+
6
+ model = pipeline('sentiment-analysis')
7
+
8
+ inp = st.text_input('Enter Text')
9
+
10
+ if inp:
11
+ st.write(model(inp))