https://github.com/thesofakillers/gptrue-or-false
📝🔍 A browser extension that displays the GPT-2 Log Probability of selected text
https://github.com/thesofakillers/gptrue-or-false
Last synced: 11 months ago
JSON representation
📝🔍 A browser extension that displays the GPT-2 Log Probability of selected text
- Host: GitHub
- URL: https://github.com/thesofakillers/gptrue-or-false
- Owner: thesofakillers
- License: gpl-3.0
- Created: 2019-11-12T23:50:56.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-08-05T22:01:42.000Z (almost 3 years ago)
- Last Synced: 2025-05-07T19:03:32.026Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 1.44 MB
- Stars: 113
- Watchers: 6
- Forks: 11
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
> Note: this is a pretty old extension! Doesn't work very well anymore. PR's welcome :) see [CONTRIBUTING.md](./CONTRIBUTING.md)
# GPTrue or False Browser Extension
A browser extension that displays the likelihood that selected portions of text were generated by [GPT-2](https://openai.com/blog/better-language-models/).
Among the many things that [OpenAI](https://openai.com/)'s GPT-2 model can do, one of these is detecting with a certain amount of certainty whether a given portion of text is human-generated. This extension hopes to bring this functionality to your browser (Chrome and Firefox).
Inspired by [this tweet](https://twitter.com/karpathy/status/1192169928079503360?s=20) from [Andrej Karpathy](https://cs.stanford.edu/~karpathy/), the director of AI at [Tesla](https://www.tesla.com/).
The extension is written using [Mozilla](https://www.mozilla.org/en-US/)'s [WebExtension browser API Polyfill](https://github.com/mozilla/webextension-polyfill), to be able to use [Promises](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) while developing cross-browser (Chrome and Firefox) extensions.
The extension makes use of HTTP requests to the [detector API](https://github.com/openai/gpt-2-output-dataset/tree/master/detector) designed by OpenAI and hosted publicly [here](https://huggingface.co/openai-detector/) by [Hugging Face](https://huggingface.co/) (huge thanks!).
## Use the Extension
The extension works on both Chrome and Firefox. Follow the links below to install it on your preferred browser:
- [Chrome Link](https://chrome.google.com/webstore/detail/gptrue-or-false/bikcfchmnacmfhneafnpfekgfhckplfj)
- [Firefox Link](https://addons.mozilla.org/en-US/firefox/addon/gptrue-or-false/)
## Contribute
This repository is public for more than just showing how the extension works. I would be more than happy to have other people work on this project. Please refer to [CONTRIBUTING.md](./CONTRIBUTING.md) for more details.
## Thanks
I would like to thank Andrej Karpathy for the idea and [David Ma](http://david.ma/) for [retweeting it](https://twitter.com/madavidj/status/1192189367579639810?s=20) with some incentive.
I would like to thank Alexandre Girard of [JoliBrain](https://github.com/jolibrain) for a [quick demo](https://gist.github.com/alx/d1efbedc930a618a73a27a3df0a1e4b6) he posted and putting pressure on me to get to work on this before someone else did.
I would like to thank the team at [Hugging Face](https://huggingface.co/) for hosting OpenAI's detector publically.
And of course, I would like to thank the team at [OpenAI](https://openai.com/) for developing GPT-2 in the first place.