Hugging Face
Search models, datasets, users...
Ctrl K
Models
Datasets
Spaces
Buckets
Docs
Enterprise
Pricing
Website
Tasks
HuggingChat
Collections
Languages
Organizations
Community
Blog
Posts
Daily Papers
Hardware
Learn
Discord
Forum
GitHub
Solutions
Team & Enterprise
Hugging Face PRO
Enterprise Support
Inference Providers
Inference Endpoints
Storage Buckets
Log In
Sign Up
Spaces:
AISYSTENT
/
AIS
Like
0
Running
App
Files
Files
Community
arzelp
commited on
Jun 15, 2024
Commit
659bb66
·
verified
·
1 Parent(s):
fca589f
create app.py
Browse files
Files changed (1)
hide
show
app.py
+8
-0
app.py
ADDED
Viewed
@@ -0,0 +1,8 @@
1
+
import streamlit as st
2
+
from transformers import pipeline
3
+
pipe=pipeline('sentiment-analysis')
4
+
text=st.text.area('enter a text , positive or negative')
5
+
if text:
6
+
out=pipe(text)
7
+
st.json(out)
8
+