File size: 1,160 Bytes
00408eb
 
 
 
 
 
e694488
00408eb
 
 
 
 
e694488
00408eb
 
e694488
00408eb
e694488
 
 
 
 
 
 
 
00408eb
 
e694488
 
 
 
 
00408eb
 
e694488
 
 
 
00408eb
e694488
 
 
 
00408eb
e694488
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
---
language: vi
tags:
- code-generation
- code-assistant
- huggingface
- python
license: mit
---

# 🚀 SuperPro Code Generator

**Model code siêu siêu giỏi pro** – Wrapper dùng Hugging Face Inference API.

### Mô tả
Đây là class Python giúp bạn sinh code **production-ready** cực mạnh bằng cách gọi model code mạnh nhất hiện tại (DeepSeek-V3.2 hoặc Qwen2.5-Coder).

### Tính năng
- Viết code sạch, tối ưu, best practices
- Comment tiếng Việt
- Tự động thêm unit test, error handling, typing
- Hỗ trợ gần như tất cả ngôn ngữ lập trình
- Production-ready

### Cách sử dụng (rất đơn giản)

```python
# 1. Cài thư viện
pip install huggingface_hub

# 2. Code sử dụng
from SuperProCodeModel import SuperProCodeModel
import os

# Set token (KHÔNG paste trực tiếp vào code public)
os.environ["HF_TOKEN"] = "hf_xxxxxxxxxxxx"   # ← thay bằng token thật của bạn

model = SuperProCodeModel()

result = model.generate(
    task="Xây dựng FastAPI CRUD User với JWT authentication, PostgreSQL, SQLAlchemy và full pytest",
    language="Python"
)

print(result)