Skip to content

Instantly share code, notes, and snippets.

@robgon-art
Last active August 21, 2020 11:12
Show Gist options
  • Save robgon-art/d6bd725c7921e68f086e2e11203f2533 to your computer and use it in GitHub Desktop.
Save robgon-art/d6bd725c7921e68f086e2e11203f2533 to your computer and use it in GitHub Desktop.
Create text samples using G
# Get some new plots
plot_ideas = gpt2.generate(sess, length=150, temperature=0.7,
prefix="GENRE:", nsamples=1, batch_size=1, return_as_list=True,
include_prefix=True, truncate="\n")
# Print out the results
import textwrap
for plot in plot_ideas:
print(textwrap.fill(plot, width=180),"\n")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment