๐Ÿš€ GPT-2 Pseudo-Code to Python Code Generator

Transform natural language descriptions into executable Python code using fine-tuned GPT-2!

This model is trained on the SPOC (Search-based Pseudo-code to Code) dataset and can generate Python code from pseudo-code descriptions.

๏ฟฝ Model Status


โœ๏ธ Enter Pseudo-Code

๐Ÿ“š Load Example

โš™๏ธ Generation Parameters

50 500
0.1 1.5
10 100
0.5 1
1 5

๐Ÿ’ป Generated Python Code


๐ŸŒŸ Features

  • โœ… Upload and use custom trained models
  • โœ… BLEU score calculation for quality assessment
  • โœ… Multiple evaluation metrics (Precision, Recall, F1)
  • โœ… Generate multiple code variations
  • โœ… Real-time performance tracking
  • โœ… Example prompts library
  • โœ… Generation history

๐Ÿ“ Citation

If you use this model, please cite:

@article{kulal2019spoc,
  title={SPOC: Search-based Pseudo-code to Code},
  author={Kulal, Sumith and Pasupat, Panupong and Chandra, Kartik and Lee, Mina and Padon, Oded and Aiken, Alex and Liang, Percy},
  journal={arXiv preprint arXiv:1906.04908},
  year={2019}
}

Built with โค๏ธ using HuggingFace Transformers & Gradio