File size: 186 Bytes
1fe5b4b
 
 
 
 
7e3e1d6
 
 
1
2
3
4
5
6
7
8
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)