![Logo](https://github.com/yuenci/What-does-this-code-mean/raw/master/images/doubt.jpg)
An awesome web app to help you understand code!
View Demo
·
Report Bug
·
Request Feature
Some modules' assignments in my university need to explain the code in documentation, and I don't like to do these meaningless things, so I wrote this project and use the GPT-3 artificial intelligence model's powerful code explanation ability to help me complete the task. If this project helps you, star it please! Thank you!
- Vanilla JS
- Python
- Flask
This project uses JavaScript as the front-end language, python as as the back-end with flask framework. You can deploy it locally or on a cloud server.
- python
pip install flask pip install flask_cors pip install openai
- Get a free API Key at https://beta.openai.com/
- Clone the repo
git clone https://github.com/yuenci/What-does-this-code-mean
- Enter your API in
main.py
API = 'ENTER YOUR API';
Check image here: https://hub.docker.com/r/innis/wtcm
$ sudo docker pull innis/wtcm:1.0
$ sudo docker run -it -p 83:83 innis/wtcm:1.0
- Paste your code into the upper input box.
- Click the ok button.
- Wait for generating explanation
- Copy explanation
- Add setting function for setting api keys.
- Set whether to use animation or no
- Code highlight
- Responsive layout
- Easter egg
See the open issues for a full list of proposed features (and known issues).
Distributed under the GPL License. See LICENSE for more information.