ishantvivek/codegen
0
1---2title: Codegen3emoji: ๐4colorFrom: indigo5colorTo: yellow6sdk: docker7pinned: false8---9 10# UNISYS Codegen11 12A FastAPI project use to generate the code snippets based on the input given.13 14We are using Granite-3B-Code-Base code model designed for code generative tasks.15 16 17## ๐ How to start app18Make sure you have python 3.10 or higher installed.19First install the dependencies.20 21Installation of transformers:22```23git clone https://github.com/huggingface/transformers24cd transformers/25pip install ./26```27 28Installing required packages:29 30```bash31pip install -r requirements.txt32```33 34### Manually35 36- Start with unicorn37```bash38pip install unicorn39uvicorn index:app --reload40```41 42### API documentation: (Change the doamin-port accordingly)43 44```45http://localhost:8000/docs/46```47 