Team Ai
Modelpublic

dnnsdunca/Logical_Algorithm

sourceHugging Faceapache-2.0updated 2y agoView on Hugging Face
0likes
README.md34 linesDownload Raw Back to root
1---2license: apache-2.03datasets:4- codeparrot/codeparrot-clean5language:6- en7metrics:8- code_eval9library_name: adapter-transformers10tags:11- code12---13# Code Generator with Chat Interface14 15This project trains a code generator model using Hugging Face's GPT-2 and deploys it with a chat interface using FastAPI and CodeMirror for syntax highlighting.16 17## Setup18 191. Install dependencies:20    ```bash21    pip install -r requirements.txt22    ```23 242. Train the model:25    ```bash26    python model_training.py27    ```28 293. Run the FastAPI server:30    ```bash31    uvicorn app:app --reload32    ```33 344. Open `index.html` in your browser to interact with the model.