File size: 1,460 Bytes
e2468b8 ef31ca1 |
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 48 49 50 51 52 |
---
datasets:
- semeru/code-code-CodeCompletion-TokenLevel-Python
metrics:
- perplexity
base_model:
- openai-community/gpt2
---
# Python Code Completion Model (GPT-2)
This project contains a web-based interface for a Python code completion model developed using HuggingFace. The model is based on GPT-2 and trained on the semeru/code-code-CodeCompletion-TokenLevel-Python dataset. Users can interact with the model via a Streamlit web interface.
## Project Overview
This project aims to develop a model for automatic Python code completion. The GPT-2 model used here has been optimized to understand and complete Python code. The model analyzes the code written by the user and suggests relevant completions.
## Features
- Model: GPT-2 based, Python code completion
- Dataset: semeru/code-code-CodeCompletion-TokenLevel-Python
- Web Interface: Streamlit
- Platform: HuggingFace
- Code Completion: Automatic Python code suggestions
## Installation
### 1.Clone the repository:
git clone https://github.com/your_username/code-completion-model.git
cd code-completion-model
### 2.Install the required dependencies:
pip install -r requirements.txt
### 3.To upload your model to HuggingFace, you can use transformers-cli:
transformers-cli login
transformers-cli upload ./path_to_your_model
### 4.Start the Streamlit app:
streamlit run app.py
### Contributers
Talha Dağlayan - talhad1109@hotmail.com
Ramiz Can Akbıyık - ramizcanakbiyik@gmail.com
|