๐Ÿ Pseudo-Code to Code Generator

Convert natural language pseudo-code to executable code using fine-tuned GPT-2

๐Ÿ“‹ How to use:

  1. Enter pseudocode: Describe what you want the code to do in natural language
  2. Set context: Adjust indent level and line number for better structure
  3. Tune generation: Modify temperature and top_p for different creativity levels
  4. 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