Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
Kelvinhjk
/
QnA_chatbot_for_Swinburne_cs_course
like
1
Runtime error
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
8595cfb
QnA_chatbot_for_Swinburne_cs_course
/
app.py
Kelvinhjk
Update app.py
80a86d7
over 1 year ago
raw
Copy download link
history
blame
181 Bytes
import
streamlit
as
st
from
transformers
import
pipeline
model = pipeline(
'sentiment-analysis'
)
text = st.text_area(
"Type anything: "
)
if
text:
out = model(text)
st.json(out)