import gpt_2_simple
model_name = "124M"
# Download the model
gpt_2_simple.download_gpt2(model_name=model_name)
# Load the model
sess = gpt_2_simple.start_tf_sess()
gpt_2_simple.load_gpt2(sess, model_name=model_name)
# Generate some text
gpt_2_simple.generate(sess)
# Check if the generated text is created by OpenAI artificial intelligence
if "OpenAI" in gpt_2_simple.generate(sess):
print("The generated text was created by OpenAI artificial intelligence")
else:
print("The generated text was not created by OpenAI artificial intelligence")