Hugging Face
Models
Datasets
Spaces
Buckets
new
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
Khaled21
/
First-app
like
2
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
aa7df82
First-app
/
app.py
Khaled21
AI Update
aa7df82
about 2 years ago
raw
Copy download link
history
blame
220 Bytes
import
streamlit
as
st
from
transformers
import
pipeline
model_name =
"SamLowe/roberta-base-go_emotions"
pipe = pipeline(task=
"text-classification"
, model=model_name)
user_text = st.text_area(
"Explain your feelings"
)