Browse Source

Merge pull request #287 from alakob/llm_engineering_blaise_alako_contrib

Multi-language code converter contribution
pull/300/head
Ed Donner 1 month ago committed by GitHub
parent
commit
29079a5a72
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 107
      week4/community-contributions/ai_code_converter/codeXchange.ipynb
  2. BIN
      week4/community-contributions/ai_code_converter/screenshots/codeXchange_1.png
  3. BIN
      week4/community-contributions/ai_code_converter/screenshots/codeXchange_2.png
  4. BIN
      week4/community-contributions/ai_code_converter/screenshots/codeXchange_3.png
  5. BIN
      week4/community-contributions/ai_code_converter/screenshots/codeXchange_3_1.png
  6. BIN
      week4/community-contributions/ai_code_converter/screenshots/codeXchange_4.png

107
week4/community-contributions/ai_code_converter/codeXchange.ipynb

@ -0,0 +1,107 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## codeXchange AI: Transform Code with a Click!\n",
"\n",
"**Created by Blaise Alako**\n",
"\n",
"Get ready to revolutionize your coding experience with **codeXchange AI**—a web-based Gradio app that converts code between programming languages in a flash! Powered by cutting-edge frontier and open-source LLMs, this tool is a game-changer for beginners diving into new languages, intermediates streamlining projects, and advanced users pushing the limits of innovation. Just paste or upload your code, choose your target language, and watch the magic unfold!\n",
"\n",
"**Why codeXchange AI?**\n",
"- **Effortless**: No downloads—just pure web-based magic.\n",
"- **Brilliant**: AI-driven conversions that nail accuracy.\n",
"- **Adaptable**: Add new languages or models with ease.\n",
"\n",
"Explore the source code [codeXchange AI](https://github.com/alakob/ai_code_converter) and experience the thrill!\n",
"\n",
"---\n",
"\n",
"### Table of Contents\n",
"1. [Explore the Interface](#explore-the-interface)\n",
"2. [Upload and Convert](#upload-and-convert)\n",
"3. [See the Results](#see-the-results)\n",
"4. [Unleash Advanced Features](#unleash-advanced-features)\n",
"5. [Performance That Wows](#performance-that-wows)\n",
"6. [Get Started Now](#get-started-now)\n",
"\n",
"---\n",
"\n",
"### Explore the Interface\n",
"\n",
"#### A Sleek Starting Point\n",
"Step into the world of codeXchange AI with its stunningly simple interface, designed to make your coding journey a breeze!\n",
"\n",
"![Initial Interface](screenshots/codeXchange_1.png) \n",
"*Screenshot: The app’s clean starting screen, ready for your code.*\n",
"\n",
"With options to upload files or pick example snippets, you’re just a click away from transforming your code.\n",
"\n",
"---\n",
"\n",
"### Upload and Convert\n",
"\n",
"#### Load Your Code with Ease\n",
"Whether you’re a beginner or a pro, uploading your code is a snap. Drag and drop a file, or select a preloaded snippet to kick things off.\n",
"\n",
"![Loading Code](screenshots/codeXchange_2.png) \n",
"*Screenshot: The upload section with a dropdown for example snippets.*\n",
"\n",
"Choose your input language, pick your target, and hit “Convert”—it’s that easy to bridge the language gap!\n",
"\n",
"---\n",
"\n",
"### See the Results\n",
"\n",
"#### Witness the Transformation\n",
"Watch codeXchange AI work its magic! It converts your code with precision, adding helpful documentation to make the output crystal clear.\n",
"\n",
"![Conversion Output](screenshots/codeXchange_3.png) \n",
"*Screenshot: A converted result with documentation, ready to run.*\n",
"\n",
"From Python to C++ or beyond, the app ensures your code is ready to shine in its new language.\n",
"\n",
"---\n",
"\n",
"### Unleash Advanced Features\n",
"\n",
"#### Power Up Your Workflow\n",
"For those who love to tinker, codeXchange AI offers exciting customization! Select different models, adjust the “Temperature” for creative flair, and even add new languages to the mix.\n",
"\n",
"![Advanced Options](screenshots/codeXchange_3_1.png) \n",
"*Screenshot: Interface showcasing model selection, temperature slider, and more.*\n",
"\n",
"Download your converted code with a single click and take your projects to the next level!\n",
"\n",
"---\n",
"\n",
"### Performance That Wows\n",
"\n",
"#### Speed That Impresses\n",
"codeXchange AI doesn’t just convert—it optimizes! Check out the performance boost when running your code in a new language, with execution times that’ll leave you amazed.\n",
"\n",
"![Performance Results](screenshots/codeXchange_4.png) \n",
"*Screenshot: Execution results highlighting speed improvements.*\n",
"\n",
"From 31.49 seconds in Python to just 2.32 seconds in C++—see the difference for yourself!\n",
"\n",
"---\n",
"\n",
"### Get Started Now\n",
"\n",
"Ready to transform your coding game? Jump into [codeXchange AI source code](https://github.com/alakob/ai_code_converter) Convert, run, and download your code in seconds. Whether you’re just starting out, managing complex projects, or innovating at an advanced level, this app is your ultimate coding companion.\n",
"\n",
"---\n"
]
}
],
"metadata": {
"language_info": {
"name": "python"
}
},
"nbformat": 4,
"nbformat_minor": 2
}

BIN
week4/community-contributions/ai_code_converter/screenshots/codeXchange_1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 65 KiB

BIN
week4/community-contributions/ai_code_converter/screenshots/codeXchange_2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

BIN
week4/community-contributions/ai_code_converter/screenshots/codeXchange_3.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 182 KiB

BIN
week4/community-contributions/ai_code_converter/screenshots/codeXchange_3_1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

BIN
week4/community-contributions/ai_code_converter/screenshots/codeXchange_4.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Loading…
Cancel
Save