Spaces:
Sleeping
Sleeping
Rundstedtz
commited on
Commit
•
10d7fdb
1
Parent(s):
4c911d7
Update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,10 @@
|
|
1 |
import streamlit as st
|
2 |
import transformers
|
3 |
from transformers import pipeline
|
|
|
4 |
pipe = pipeline("sentiment-analysis")
|
5 |
text = st.text_area("enter some text!")
|
|
|
6 |
if text:
|
7 |
-
out = pipe(text)
|
8 |
-
st.json(out)
|
|
|
1 |
import streamlit as st
|
2 |
import transformers
|
3 |
from transformers import pipeline
|
4 |
+
|
5 |
pipe = pipeline("sentiment-analysis")
|
6 |
text = st.text_area("enter some text!")
|
7 |
+
|
8 |
if text:
|
9 |
+
out = pipe(text)
|
10 |
+
st.json(out)
|