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