Spaces:
Sleeping
Sleeping
File size: 779 Bytes
859323e 6fadbbc |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
---
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/
```
|