Skip to content
Snippets Groups Projects
Commit 4e7c2a4f authored by Niels Becker's avatar Niels Becker
Browse files

Aitextgen

parent 4b5294ba
No related branches found
No related tags found
1 merge request!1Update Neural Style Transfer.py
#This Code is based on a library from minimaxir.
#https://github.com/minimaxir/aitextgen
from aitextgen import aitextgen
# Without any parameters, aitextgen() will download, cache, and load the 124M GPT-2 "small" model
ai = aitextgen()
ai.generate()
ai.generate(n=3, max_length=100)
ai.generate(n=3, prompt="I believe in unicorns because", max_length=100)
ai.generate_to_file(n=3, prompt="""I believe in unicorns because """, max_length=300, temperature=1.5)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment