Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
varadhbhatnagar
/
demo
like
0
Runtime error
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
60ed2f2
demo
/
app.py
varadhbhatnagar
Create app.py
afbec41
about 2 years ago
raw
Copy download link
history
blame
Safe
171 Bytes
import
streamlit
as
st
from
transformers
import
pipeline
pipe = pipeline(
'summarization'
)
text = st.text_area(
'Enter a tweet'
)
if
text:
out = pipe(text)
st.json(out)