ImranAliNaeem/Pseudo-code-to-Code-Generation
0
๐ SPoC: Pseudocode to Code Converter
Transform natural language pseudocode into executable C++ code using AI! Powered by fine-tuned GPT-2 with LoRA.
Features
- ๐ค AI-Powered Conversion: Uses fine-tuned GPT-2 model with LoRA adapters
- ๐ป C++ Code Generation: Converts pseudocode to executable C++ code
- โก Real-time Generation: Fast code generation with customizable parameters
- ๐ฅ Download Support: Export generated code as .cpp or .txt files
- ๐ฏ Example Templates: Pre-built examples for common programming patterns
How to Use
- Enter Pseudocode: Write clear, step-by-step pseudocode in the input box
- Adjust Settings: Customize generation parameters (temperature, beam search, etc.)
- Generate Code: Click the "Generate Code" button
- Download: Save your generated C++ code
Supported Patterns
- ๐ฅ Input/Output operations
- ๐ Loops (for/while)
- โ Conditionals (if/else)
- ๐ Arrays and data structures
- ๐ค String manipulation
- ๐งฎ Mathematical operations
- ๐ง Functions and procedures
Model Information
- Base Model: GPT-2
- Fine-tuning: LoRA (Low-Rank Adaptation)
- Training Data: SPoC dataset
- Trainable Parameters: ~811K
- Task: Pseudocode to C++ code conversion
Tips for Best Results
- โ Be specific and clear in your pseudocode
- โ Use simple, descriptive variable names
- โ Describe logic step-by-step
- โ One operation per line
- โ Use standard programming terminology
