--- title: Codegen emoji: 📊 colorFrom: indigo colorTo: yellow sdk: docker pinned: false --- # UNISYS Codegen A FastAPI project use to generate the code snippets based on the input given. We are using Granite-3B-Code-Base code model designed for code generative tasks. ## 🌞 How to start app Make sure you have python 3.10 or higher installed. First install the dependencies. Installation of transformers: ``` git clone https://github.com/huggingface/transformers cd transformers/ pip install ./ ``` Installing required packages: ```bash pip install -r requirements.txt ``` ### Manually - Start with unicorn ```bash pip install unicorn uvicorn index:app --reload ``` ### API documentation: (Change the doamin-port accordingly) ``` http://localhost:8000/docs/ ```