/AtomGPTSuggestions

A text prediction autocomplete addon for Atom Editor! Use `git clone` to get started.

Primary LanguageJavaScriptMIT LicenseMIT

AtomGPTSuggestions

An autocomplete addon for Atom Editor, powered by GPT-2 and HuggingFace's API! Install Atom and git clone this repository to get started.

Installation

  1. Go to atom.io and install Atom Editor.
  2. Clone this repository.
  • You can use Github Desktop
  • Alternatively, do git clone https://github.com/wz-ml/AtomGPTSuggestions.git.
  1. Open terminal/command prompt/shell, navigate to the repo directory, and run apm link.
  2. Open Atom Editor. After going through setup, you will be able to see a screen like this:

  1. Go to File -> Add Project Folder -> Add the repo folder.

Start editing!

Go to mynewfile1.txt and start editing! You should be able to see autocompletion suggestions after typing a sentence or so. Any new text files created in the repo folder will have the autocomplete functionality enabled!

GPT-2 will often give different suggestions when you put in the same input multiple times. Try it out!

Backend API

NotAnAutocompleteAI relies on Huggingface's GPT-2 API to provide suggestions. Direct API link: https://transformer.huggingface.co/autocomplete/distilgpt2/medium

Credit goes to...

Built on atom-autocomplete-boilerplate. GPT-2 API credit goes to Huggingface Transformers. LICENSE