Giter Club home page Giter Club logo

code-translator's Introduction

PolyglotCode: A Python app for translating, fixing and explaining code with AI.

🔗 Live demo

PolyglotCode is a simple Python app that uses the power of AI to translate, fix, and explain code. With only 100 lines of code, this app is easy to use and a great way to learn about creating apps and working with ChatGPT and AI.

drawing

Introduction

PolyglotCode is an awesome project that demonstrates the power of AI and the ease of creating apps using Python. To learn how to build this app step by step follow the tutorial in the Youtube link below (English and Spanish). For developing the app in just 100 lines of code and only using Python we need:

  • ChatGPT API
  • Streamlit

⚠️ Tutorial code in branch tutorial

English tutorial | Youtube

Tutorial en Español | Youtube

The Awesome Project We Can Build

Are you tired of spending hours trying to figure out what's wrong with your code? Do you want to learn more about how AI can help you fix and explain code? Then PolyglotCode is the app for you! With PolyglotCode, you can simply paste your code into the app and let AI do the rest. The app will translate your code into plain English, fix any errors it finds, and explain how the code works.

  • Save time by quickly identifying and fixing errors in your code *Improve your programming skills by understanding how your code works and how to improve it
  • Learn about AI and how it can be used to automate programming tasks
  • By using PolyglotCode, you'll be able to create better code faster and with less frustration. And the best part? You can do it all with just 100 lines of code!

How to Use PolyglotCode

Using PolyglotCode is easy! Here are the steps:

  1. Clone or download the repository to your local machine.
  2. Install the required libraries by running the following command in your terminal:
pip install -r requirements.txt
  1. Move to the src folder and run the app using the following command:
streamlit run app.py
  1. Obtain an API key from OpenAI to use their ChatGPT API.
  2. Select 'Translate', 'Explain' or 'Fix' code.
  3. Paste your code into the text box on the app.
  4. Click the "Run" button and let AI do the rest!

Conclusion

PolyglotCode is a great project that shows how easy it is to create powerful apps using ChatGPT and Streamlit. With only 100 lines of code and Python you can build an app that translates, fixes and explains code, saving you time and improving your programming skills. Give it a try today and see how it can help you write better code faster!

code-translator's People

Contributors

nechubm avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.