CoolFace
Apppublic

ishantvivek/codegen

sourceHugging Faceupdated 2y agoView on Hugging Face
0likes
App README

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/