File size: 1,394 Bytes
e0aaf35
 
 
 
 
 
 
 
 
 
 
a0adec6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
---
title: CodeMentor - Programming Tutor Chatbot
emoji: πŸ‘¨β€πŸ’»
colorFrom: blue
colorTo: green
sdk: gradio
sdk_version: "4.0.0"
app_file: app.py
pinned: false
---

# CodeMentor - Programming Tutor Chatbot

A custom AI chatbot built with Gradio and GROQ API that serves as a personal programming tutor.

## πŸš€ Features

- **Programming Tutor Personality**: Patient, encouraging, and knowledgeable
- **Multiple AI Models**: Choose between Llama 3 8B, 70B, or Mixtral
- **Language-Specific Focus**: Get tailored examples for Python, JavaScript, Java, etc.
- **Customizable Responses**: Adjust creativity and response length
- **Interactive UI**: Clickable example questions
- **Code Formatting**: Proper syntax highlighting for code examples

## πŸ› οΈ Setup Instructions

### 1. Get GROQ API Key
1. Visit [https://console.groq.com](https://console.groq.com)
2. Sign up and get your free API key
3. Copy the key (starts with `gsk_`)

### 2. Local Deployment
```bash
# Clone or create project
mkdir programming-tutor-chatbot
cd programming-tutor-chatbot

# Create virtual environment (optional but recommended)
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate

# Install dependencies
pip install -r requirements.txt

# Set environment variable (Windows: use set instead of export)
export GROQ_API_KEY="your-api-key-here"

# Run the application
python app.py