Last active
August 21, 2020 11:12
-
-
Save robgon-art/d6bd725c7921e68f086e2e11203f2533 to your computer and use it in GitHub Desktop.
Create text samples using G
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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