AI Code Solver

Client

Open Source

Duration

1 week

Category

AI

Client

Open Source

Duration

1 week

Category

AI

Client

Open Source

Duration

1 week

Category

AI

🧠 AI_CodeSolver πŸ€–

Welcome to AI_CodeSolver! πŸš€ This is a powerful Python project that leverages state-of-the-art AI models to help you solve coding problems automatically! Whether you're a beginner or an expert, this tool will assist you in generating optimal solutions and executing them in a safe sandbox environment.

πŸ”§ AI_CodeSolver uses OpenAI's GPT-3, Google's Gemini, and E2B sandbox environments to analyze coding problems, generate solutions, and run them in real-time.

πŸ§‘β€πŸ’» Features ✨

  • πŸ“Έ Image Processing: Upload an image of a coding problem, and the system will extract the problem description using advanced image recognition (powered by Gemini).

  • πŸ“ Text Input: You can also directly type your coding problem.

  • πŸ’» Code Generation: The AI will generate a clean, efficient, and documented Python solution for your coding problem.

  • πŸš€ Code Execution: Execute the generated solution in a secure sandbox environment, and get real-time results.

  • πŸ”’ Safe Environment: Run potentially unsafe or untrusted Python code without worrying about security issues using the E2B sandbox.

  • ⚑ Optimized for LeetCode-like Problems: Designed to handle typical coding challenges with proper time and space complexity.

Prerequisites πŸ”‘

  1. Python 3.x installed on your machine.

  2. API keys for OpenAI, Gemini, and E2B (sandbox execution).

πŸ–₯️ How to Use πŸ€–

  1. Input Coding Problem:

    • You can upload an image of a coding problem or directly type the problem in the text box.

  2. Generate & Execute:

    • Once you’ve entered the problem, hit the "Generate & Execute Solution" button to let the AI generate a solution and run the code.

  3. Review the Results:

    • The AI will return the solution with a breakdown of the code.

    • The generated code will be executed in the E2B sandbox, and you’ll get the results right on the platform.

  4. Check Files (if any):

    • If the execution creates any files, they’ll be listed below the execution results for you to download.

🎨 UI/UX Overview πŸ’‘

  • Sidebar Configuration: On the left side, configure your API keys for OpenAI, Gemini, and E2B.

  • Main Area:

    • Input your coding problem as text or upload an image.

    • Get the AI-generated solution along with the execution results.

  • Real-time Feedback: See step-by-step execution logs and any generated files right after the code runs.

πŸ”§ Technologies Used βš™οΈ

  • Streamlit: The frontend framework to build the web interface.

  • OpenAI GPT-3: Used for generating Python solutions.

  • Google Gemini: For analyzing and extracting coding problems from images.

  • E2B Sandbox: A secure environment to run Python code without any security concerns.

πŸ“ License πŸ“œ

This project is licensed under the MIT License.

πŸŽ‰ Enjoy solving problems with AI CodeSolver! 🌟

Client

Open Source

Duration

1 week

Category

AI

Β© Copyright 2023. All rights Reserved.

Made by

Andrea Disanti

in

Β© Copyright 2023. All rights Reserved.

Made by

Andrea Disanti

in

Β© Copyright 2023. All rights Reserved.

Made by

Andrea Disanti

in