File size: 1,125 Bytes
8372d43
 
 
 
 
 
4cdd517
8372d43
 
4cdd517
8372d43
 
 
 
 
 
6cf53b1
d7bf889
6cf53b1
eff8bef
6cf53b1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4cdd517
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
---
title: AI Code Generator
emoji: 🤖
colorFrom: indigo
colorTo: blue
sdk: gradio
sdk_version: 5.38.2
app_file: app.py
pinned: false
short_description: Generate code snippets from plain English prompts
---

Generate code snippets from natural language prompts using Hugging Face’s StarCoder model and Gradio UI.

Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference

# 🤖 AI Code Generator

Generate code snippets from plain English prompts using Hugging Face's StarCoder model and a clean Gradio UI.

---

## ✨ Features
- Natural-language to code generation
- Language selection: Python, JavaScript, Bash, HTML, Java, C++
- Powered by `bigcode/starcoder`
- Free and open-source

---

## 🧪 Example Prompts
- Print even numbers from 1 to 100
- Connect to a database in Java
- Build a responsive navbar in HTML
- Make a bash script to backup a directory

---

## 🔧 Tech Stack
- [Gradio](https://gradio.app)
- [Transformers](https://huggingface.co/docs/transformers)
- Model: [bigcode/starcoder](https://huggingface.co/bigcode/starcoder)

---

## 📁 Project Structure