I made an AI to convert Complex Python Codes to Simple English.
I made an AI to convert Complex Python Codes to Simple English.
So, I am a programmer and I can guarantee that every programer in there life must have a moment when they were asked by the other party that what the code on the screen means and even after explanation they have no idea whats going on. So, to fix that I made an AI for it.
I am going to use GPT-3 for it cuz its the best for language processing.
If you want to know more about what GPT-3 read my article where I have a detailed explantion:
So, I have often experienced in interviews the interviewer asks to explain hard topics in a form that a child can…medium.com
Lets get started with the code.
First the installs:
Now lets us import the libs needed:
Now lets use GPT-3 to input and generate the converted text:
And that's it, thats how you make a Python to english converter in 10 lines.
Lets see some outputs:
The explanation by AI:
AI: The code removes the common prefix from a string. For example, if the prefix is \”abc\” and the string is \”abcdef\”, the code will remove the \”abc\” from the string, leaving \”def\”. If the prefix is \”abc\” and the string is \”abcd\”, the code will remove
There you have it. A clean explanation. hehe its a success lets gooooo.
If ya guys liked the article, follow me on medium its appreciated a-lot.
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👋🏼