lamgamepro1 commited on
Commit
e694488
·
verified ·
1 Parent(s): 00408eb

Update model_card.md

Browse files
Files changed (1) hide show
  1. model_card.md +25 -9
model_card.md CHANGED
@@ -4,26 +4,42 @@ tags:
4
  - code-generation
5
  - code-assistant
6
  - huggingface
 
7
  license: mit
8
  ---
9
 
10
  # 🚀 SuperPro Code Generator
11
 
12
- **Model code siêu siêu giỏi pro** – Dùng Hugging Face Inference API.
13
 
14
  ### Mô tả
15
- Đây là wrapper model giúp bạn sinh code **production-ready** cực mạnh bằng cách gọi DeepSeek-V3.2 (hoặc Qwen2.5-Coder) qua HF Inference.
16
 
17
- ### Cách sử dụng (siêu đơn giản)
 
 
 
 
 
 
 
18
 
19
  ```python
20
- from huggingface_hub import InferenceClient
 
 
 
 
21
  import os
22
 
23
- # Set token
24
- os.environ["HF_TOKEN"] = "hf_xxxxxxxx"
 
 
25
 
26
- # Tải model card này về hoặc clone repo
27
- # Sau đó dùng class SuperProCodeModel (xem app.py hoặc README)
 
 
28
 
29
- client = InferenceClient("tên-user-của-bạn/superpro-code-generator")
 
4
  - code-generation
5
  - code-assistant
6
  - huggingface
7
+ - python
8
  license: mit
9
  ---
10
 
11
  # 🚀 SuperPro Code Generator
12
 
13
+ **Model code siêu siêu giỏi pro** – Wrapper dùng Hugging Face Inference API.
14
 
15
  ### Mô tả
16
+ Đâ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).
17
 
18
+ ### Tính năng
19
+ - Viết code sạch, tối ưu, best practices
20
+ - Comment tiếng Việt
21
+ - Tự động thêm unit test, error handling, typing
22
+ - Hỗ trợ gần như tất cả ngôn ngữ lập trình
23
+ - Production-ready
24
+
25
+ ### Cách sử dụng (rất đơn giản)
26
 
27
  ```python
28
+ # 1. Cài thư viện
29
+ pip install huggingface_hub
30
+
31
+ # 2. Code sử dụng
32
+ from SuperProCodeModel import SuperProCodeModel
33
  import os
34
 
35
+ # Set token (KHÔNG paste trực tiếp vào code public)
36
+ os.environ["HF_TOKEN"] = "hf_xxxxxxxxxxxx" # ← thay bằng token thật của bạn
37
+
38
+ model = SuperProCodeModel()
39
 
40
+ result = model.generate(
41
+ task="Xây dựng FastAPI CRUD User với JWT authentication, PostgreSQL, SQLAlchemy và full pytest",
42
+ language="Python"
43
+ )
44
 
45
+ print(result)