Hugging Face
Models
Datasets
Spaces
Posts
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
over 1 year 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)