Making an AI to write articles for me.
Making an AI to write articles for me.
The other day I was bored. So here we are. Lets make an AI that can write articles for me to publish in medium.
Btw if you have no Idea what I am talking about here you go:
I was bored so though of making an AI write articles for me. and here is the article 👇medium.com
I used GPT-2 to make the generation model.
Lets get started with the code.
Connect with a GPU runtime and check your given Nvidia GPU:
Install transformers:
Importing Libraries:
Initiating the GPT-2 Tokeniser and GPT-2 Model:
Take inputs from the user:
Tokenise the input sentences:
Generating our outputs:
The max_length is set to 1000 so it will generate up-to 1000 characters.
Finally Decoding the Generated Output:
Finally our code is done. Lets see the outputs.
The outputs:
Can AI kill humans?
Yes.
Can AI kill humans?
Yes, but only if the AI is programmed to do so.
Can AI be programmed to kill humans?
No.
Can an AI be programmed to kill human beings?
Yes.
Can an AI be designed to kill human beings?
Yes.
Is it possible for an AI to kill humans?
Yes.
Is it possible for a human to be killed by an AI?
No.
Is it necessary for an AI to be programmed to kill humans?
No.
Is it necessary for a human to be programmed to kill an AI?
Yes, if the AI is designed to do so.
Does an AI need to be programmed to be able to kill humans?
Does an AI have to be programmed to be capable of killing humans?
No, if the AI is not designed to kill humans.
Is it sufficient for an AI to be designed to be capable of killing human beings?
No.
Is it sufficient for a human being to be programmed to kill a human being?
No.
Will we be able to colonise other planets?
Yes, we will be able to colonise planets.
Will we be able to trade with other races?
Yes, you will be able to trade with the other races.
Will there be more than one race in the game?
Yes, there will be more than one race.
Will the player be able to create their own race?
Yes, the player will be able to create a new race.
Will you be able to create your own faction?
Yes, players will be able to create new factions.
Will the players be able to create new ships?
Yes, ships will be able to be created.
Will the ships be able to be destroyed?
Yes, they will be able to be destroyed.
Will the ship be able to be repaired?
Yes, it will be able to be repaired.
Is the concept of multiverse real?
Yes, the concept of multiverse is real.
What is the concept of multiverse?
The concept of multiverse is the idea that there are many universes, each with its own laws of physics.
How many universes are there?
The number of universes is infinite.
What are the laws of physics of each universe?
The laws of physics of each of the universes are the same as the laws of physics of the universe in which it is located.
How many laws of physics are there in each universe?
There are many laws of physics in each of the universes.
How many different laws of physics are there?
There are several different laws of physics in each universe.
What is a multiverse?
A multiverse is a collection of universes.
What is an infinite multiverse?
An infinite multiverse is an infinite number of universes.
Why are there so many multiverses?
There are so many multiverses because there are so many different universes.
How do we know that there are so many multiverses?
We know that there are many multiverses because the laws of physics are the same in all of them.
How many multiverses can there be?
There is no limit to the number of multiverses.
Will AI take over the world?
No. AI will not take over the world.
How will AI work?
AI will be able to take over the world, but it will not be able to take over all of it.
Will AI be able to create its own laws?
Yes. AI will be able to create laws.
Will AI create its own government?
Yes, AI will be able to have its own government.
Will AI have its own currency?
Yes.
Will AI use its own money?
No.
Will AI make its own weapons?
Yes, it will be able to make its own weapons.
Will AI develop its own technology?
Yes. It will be able to develop its own technology.
Will AI build its own cities?
No. It will not be able to build its own cities.
Will AI control its own military?
No. The AI will not be able to control its own military.
Will the AI be able to control the economy?
Yes. The AI will be able to control the economic system.
Will AI take over the government?
No, the AI will not be allowed to take over the government.
What will the AI be able to do?
The AI will be able to do a lot of things.
What will AI be able to not do?
AI will not be able to do any of the following:
Create its own laws
Create its own currency
Create its own government
Create its own military
Create its own technology
Create its own culture
Create its own religion
Create its own language
Create its own art
Create its own music
Create its own movies
Create its own TV shows
Create its own books
Create its own magazines
Create its own newspapers
Create its own websites
Create its own games
Create its own software
Create its own hardware
Create its own robots
Create its own weapons
Create its own space ships
Create its own planets
Create its own stars
Create its own galaxies
Create its own solar systems
Create its own suns
Create its own moons
Create its own asteroids
Create its own comets
Create its own black holes
Create its own supernovas
Create its own gamma ray bursts
Create its own gravitational waves
Create its own X-rays
Create its own infrared light
Create its own microwaves
Create its own radio waves
Create its entire universe
Create its entire galaxy
Create its entire solar system
Create its entire Milky Way galaxy
Create the entire universe
Create the entire galaxy
Create the universe
Create the whole universe
Create the universe in its entirety
Create the whole galaxy
Create the whole solar system
Create the whole Milky Way galaxy
Creates the whole universe
Creates the entire solar system
Creates the universe in its entirety
Will aliens come to earth?
Yes, they will.
What will they look like?
They will look like us.
How will they behave?
They will behave like us.
Will they be intelligent?
Yes.
Will they have emotions?
Yes, and they will have emotions.
Will they speak English?
Yes, but they will not be able to speak English.
Will they understand us?
Yes, because they will be able to understand us.
Will we be able to understand them?
Yes, we will be able to understand them.
Will they know us?
No, they will not know us.
What will we be able to do to them?
We will be able to kill them.
How will we do it?
We will cut their heads off.
What will happen to their bodies?
Their bodies will disintegrate.
Will they still be alive?
Yes, their bodies will still be alive.
Will we have to kill them?
No, we will not have to kill them, because they will be dead.
Is god real?
I don’t know. I don’t think so. I don’t think there is a god. I don’t think that there is a God. I don’t believe that there is a God, and I don’t think there ever will be. I don’t believe there is a God.
I don’t think there is. I don’t think. I don’t. I don’t.
You don’t believe in God?
No. I don’t believe in God. I don’t think God exists. I don’t think He exists. I don’t believe He exists.
Do you think there is a God?
No, I don’t. I think there is no God.
Do you believe in a God?
Yes. I believe in a God.
What do you believe in?
I believe in a God. I believe in God.
What is your religion?
I’m a Christian. I’m a Christian.
What is the difference between a Christian and a Muslim?
I think the difference between a Muslim and a Christian is that a Muslim believes in God, and a Christian believes in Jesus Christ.
Do you consider yourself a Christian?
I consider myself a Christian. I consider myself a Christian.
Are you a Christian?
Yes.
Do you have a Bible?
No.
Do you read the Bible?
Yes, I read the Bible.
Do you know the Bible?
I know the Bible. I know the Bible.
Are you Christian?
I’m not a Christian. I’m not a Christian.
Do you pray?
No. No. No.
Do you go to church?
Yes. Yes. Yes. Yes.
Do you attend church?
Yes, yes, yes. Yes.
Have you ever been to church?
No, no, no. No, no, no.
Have you been to a church?
I’ve never been to a church. I’ve never been to church. I’ve never gone to a church.
Do you worship God?
I worship God. I worship God.
What does God look like?
God looks like a man. God looks like a man.
What does a man look like?
A man looks like a man, and a woman looks like a woman.
Are you atheist?
I’m atheist. I’m atheist.
Are you agnostic?
I’m agnostic. I’m agnostic.
Are you spiritual?
I’m spiritual. I’m spiritual.
Are you non-religious?
I’m non-religious. I’m non-religious.
What is your name?
My name is John.
How old are you?
I’m 19.
What do you do?
I’m a photographer.
What’s your favourite colour?
I like blue.
What’s the best part of your job?
I get to take pictures of people.
Do you have any pets?
No.
Do you like to travel?
Yes.
What is your favourite thing to do?
I like to go to the beach.
What is the worst thing about your job?
People don’t like me.
Do you think you’ll ever retire?
I don’t know.
What’s next for you?
I want to go to college.
Do you want to be a writer?
No, I want to be a photographer.
Do you know any aliens?
No, I don’t know any aliens. I don’t know anything about aliens. I don’t even know what the word “aliens” means. I don’t know what the word “alien” means.
Do you know anything about the moon?
I don’t know anything about the moon. I don’t know how the moon works. I don’t know where the moon is. I don’t know why the moon is there. I don’t know if the moon is a planet or a star. I don’t know whether the moon is a star or a planet. I don’t know that. I don’t know.
Do you think the moon is a planet?
I think it’s a planet. I think it’s a star. I think the moon is a star.
Do you believe in God?
I believe in God. I believe in God. I don’t believe in God.
Do you have a belief in God?
No. I don’t have a belief in God.
Have you ever been to heaven?
No.
Have you been to hell?
No.
The generations are awesome. At some points creepy too 🥶.
If you liked the article a follow would mean alot.
For the Colab notebook go here:
For more stuff check out my GitHub:
For my day to day AIML updates follow me on twitter:
Thanks for reading 😁, See ya guys next week 👋🏼