Spaces:
Sleeping
Sleeping
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,21 +1,38 @@
|
|
| 1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
|
| 3 |
-
|
|
|
|
| 4 |
|
| 5 |
-
##
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
- `codellama/CodeLlama-7b-hf`
|
| 14 |
-
- `Qwen/Qwen2.5-Coder-7B-Instruct`
|
| 15 |
|
| 16 |
-
|
| 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
|