Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
onemriganka
/
hello_space
like
1
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
smile me
commited on
Aug 31, 2023
Commit
4aa9f7d
·
1 Parent(s):
b0ce03a
Update app.py
Browse files
Files changed (1)
hide
show
app.py
+9
-0
app.py
CHANGED
Viewed
@@ -0,0 +1,9 @@
1
+
import streamlit as st
2
+
from transformers import
3
+
pipe = pipeline("sentiment analysis")
4
+
text = st.textarea("enter some text")
5
+
6
+
7
+
if text:
8
+
out = pipe(text)
9
+
st.json(out)