Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
Ankush05
/
Code9
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
main
Code9
/
app.py
Ankush05
this
7e3e1d6
almost 2 years ago
raw
Copy download link
history
blame
contribute
delete
Safe
186 Bytes
import
streamlit
as
st
from
transformers
import
pipeline
generator = pipeline(model=
"gpt2"
)
gentext = generator(
"I can't believe you did such a "
, do_sample=
False
)
st.write(gentext)