Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
noteldar
/
test_text_app
like
0
Runtime error
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
df13dd1
test_text_app
/
app.py
noteldar
Update app.py
df13dd1
about 2 years ago
raw
Copy download link
history
blame
201 Bytes
from
transformers
import
pipeline
import
streamlit
as
st
generator = pipeline(
'text-generation'
, model=
'gpt2'
)
text = st.text_area(
'Enter Explanation'
)
if
text:
out = generator(text)
st.json(out)