sakuragolden commited on
Commit
44a05d4
·
verified ·
1 Parent(s): ebc6b9a

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +32 -15
README.md CHANGED
@@ -1,21 +1,38 @@
1
- # Universal Code Generator (Hugging Face Inference) — Gradio
 
 
 
 
 
 
 
 
 
2
 
3
- This Space uses a Hugging Face Inference API model to generate, explain, fix and convert code.
 
4
 
5
- ## How to configure
 
 
 
 
 
 
6
 
7
- 1. Add a secret in your Space settings:
8
- - Name: `HF_TOKEN` (or `HUGGINGFACEHUB_API_TOKEN`)
9
- - Value: your Hugging Face Inference API token
 
 
 
 
10
 
11
- 2. Optional: change the default model in the UI. Recommended code models:
12
- - `bigcode/starcoder2-3b`
13
- - `codellama/CodeLlama-7b-hf`
14
- - `Qwen/Qwen2.5-Coder-7B-Instruct`
15
 
16
- 3. The app is built with Gradio. The Space will automatically start the app.
17
-
18
- ## Notes
19
- - This app does **not** execute generated code. Always review code before running.
20
- - For larger models prefer using the Inference API rather than downloading big models into the Space.
21
 
 
 
 
1
+ ---
2
+ title: Universal Code Generator
3
+ emoji: 🤖
4
+ colorFrom: blue
5
+ colorTo: purple
6
+ sdk: gradio
7
+ sdk_version: "4.0.0"
8
+ app_file: app.py
9
+ pinned: false
10
+ ---
11
 
12
+ # 🔧 Universal Code Generator
13
+ A multi-language AI code generator powered by **Hugging Face Inference API**.
14
 
15
+ ## 🚀 Features
16
+ - Generate code in **70+ programming languages**
17
+ - Explain code
18
+ - Fix code
19
+ - Convert code between languages
20
+ - Runs entirely through HF Inference API (NO torch needed)
21
+ - UI built with Gradio
22
 
23
+ ## 🧠 Supported Models
24
+ Recommended code models:
25
+ - `Qwen/Qwen2.5-Coder-7B-Instruct`
26
+ - `bigcode/starcoder2-3b`
27
+ - `codellama/CodeLlama-7b-hf`
28
+ - `microsoft/Phi-3-mini-4k-instruct`
29
+ - `deepseek-ai/deepseek-coder-6.7b-instruct`
30
 
31
+ ## 🔑 Usage
32
+ Paste your **Hugging Face API Token** in the UI, select a model, and start generating.
 
 
33
 
34
+ ## ▶️ Run
35
+ This Space uses:
 
 
 
36
 
37
+ ```sh
38
+ python app.py