mayurmistry commited on
Commit
0c3d163
1 Parent(s): ff874f4

Sentiment analysis

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -1,3 +1,10 @@
1
  import streamlit as st
 
2
 
3
- st.title("Hot Dog or Cold Dog")
 
 
 
 
 
 
 
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
+
7
+ st.title("Hot Dog or Cold Dog")
8
+
9
+ if text:
10
+ out = pipe(text)