A coding assistant built with CodeLlama-7B,Langchain and Gradio.
This app allows you to ask coding-related questions and get helpful answers in a conversational interface.
- Chat with CodeHelper, your AI coding assistant.
- Supports multiple programming languages:
- Python, JavaScript, Java, C++, HTML/CSS, SQL, Linux commands, and more.
- Clean and interactive Gradio interface.
- Maintains conversation history for follow-up questions.
- Easy to deploy locally.
-
Install Ollama: Download and install Ollama from https://ollama.com .
-
Pull the CodeLlama-7B model:
ollama pull codellama:7b- Clone the repository:
git clone https://github.com/sush-sp777/CodeHelper-using-codellama-7b.git
cd CodeHelper-using-codellama-7b- Create a virtual environment and activate it:
python -m venv venv
# Windows
venv\Scripts\activate
# Mac/Linux
source venv/bin/activate- Install required Python packages:
pip install gradio langchain requests- Run the Gradio app:
python app.py- Type your coding question in the input box.
- Click Submit.
- The assistant will respond in the output box.
- Follow-up questions are maintained in conversation history.