pythongoogle-colaboratorygoogle-publisher-tag

Google Colab Text Wrapping Assistance


I am new to coding and would greatly appreciate your guys' help. I'd like to be able to wrap this text, but I am unsure as to how.

gpt2.generate(sess,
      length=500,
      temperature=1.01,
      prefix="Mutko went on to add that '",
      nsamples=10,
      batch_size=10,

Solution

  • I suggest using pprint or textwrap.