๐ Pseudo-Code to Code Generator
Convert natural language pseudo-code to executable code using fine-tuned GPT-2
๐ How to use:
- Enter pseudocode: Describe what you want the code to do in natural language
- Set context: Adjust indent level and line number for better structure
- Tune generation: Modify temperature and top_p for different creativity levels
- Generate: Click submit to get your code!
Note: This model was trained on the SPOC dataset containing C++ code examples.
1 10
1 100
๐๏ธ Generation Parameters
0.1 2
0.1 1
50 512
๐ Example Inputs
Examples
| ๐ Pseudocode | ๐ข Indent Level | ๐ Line Number | ๐ก๏ธ Temperature | ๐ฏ Top-p | ๐ Max Length |
|---|
๐ค Model Details: Fine-tuned GPT-2 with LoRA on SPOC dataset
๐ Training: Pseudo-code to C++ code generation with structural information
โก Powered by: Transformers, Safetensors, and Gradio