CodeGenie is an advanced AI-powered tool designed to streamline Python coding tasks. This application allows you to generate Python code based on user prompts, execute it, and automatically handle debugging, all with the power of artificial intelligence.
- Dynamic Code Generation: Generate Python code based on user-provided prompts.
- Automated Execution: Execute the generated Python code in a secure environment.
- Intelligent Debugging: Automatically fix errors and handle missing modules.
- Interactive Input Handling: Provide values for function parameters interactively.
- Retry Mechanism: Multiple attempts to ensure successful code execution.
Check out the demo of the application: CodeGenie
- Clone the repository:
git clone https://github.com/RiteshGenAI/CodeGenie.git
- Navigate to the project directory:
cd CodeGenie - Install dependencies:
pip install -r requirements.txt
-
Run the application:
streamlit run .\src\app.py
-
Access the application in your web browser at
http://localhost:8501. -
Enter your Python code prompt in the text area to generate code.
-
Provide values for any input parameters if required.
-
Execute the generated code and view the results or errors.
- GROQ_API_KEY: Set your API key for the Groq service in the
.envfile to enable code generation and fixing. Replace the placeholder with your actual API key.
- Fork the repository to your GitHub account.
- Create a new branch for your feature or bug fix.
- Make your changes and test thoroughly.
- Submit a pull request with a description of your changes.
This project is licensed under the MIT License - see the LICENSE file for details.