- Loads
gpt-2
, but can loadgpt2-medium
,gpt2-large
orgpt2-xl
. max_length
set to 100 (The max length of the sequence to be generated.)- running
".".join(output.split(".")[:-1]) + "."
so thatmax_length
doesn't stop an output abruptly.
gradio-app / gpt-2 Goto Github PK
View Code? Open in Web Editor NEWGPT-2 on Gradio