Spaces:
Runtime error
Runtime error
mayurmistry
commited on
Commit
•
0c3d163
1
Parent(s):
ff874f4
Sentiment analysis
Browse files
app.py
CHANGED
@@ -1,3 +1,10 @@
|
|
1 |
import streamlit as st
|
|
|
2 |
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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)
|