Giter Club home page Giter Club logo

you's Introduction

You

An auto-completion tool that is you.

You lets you train a generative model that can mimic your personal style, and use it as an autocompletion tool. Currently, You trains on WhatsApp chat history, and offers autocomplete suggestions on WhatsApp Web via a Chrome extension. This can be extended to train and autocomplete on more personal communication apps (Messenger, email, slack, Twitter). Everything runs locally and is completely private.

Contributors : nuwandavek, rishicomplex

Blog Post : https://vivekaithal.co/posts/you-complete-you/

Demo

Demo

Train You on your data

Training You on your own data is somewhat clunky right now. Follow these steps. First, clone the You repository.

$ git clone https://github.com/nuwandavek/you.git
$ cd you
$ pip install -r requirements.txt

Fine tune the model on your WhatsApp chat history

First, we'll fine-tune the DistilGPT2 model on your WhatsApp history. Follow the instructions in this colab. Remember, more the data, the better You work(s)! Download the model.zip file at the end of this step, and unzip it to a location of your choice.

Install the You Browser extension

Note : This extension was tested for Firefox and Chrome

Firefox

  • Enter about:debugging#/runtime/this-firefox in the address bar
  • Click on Load Temporary Add-on...
  • Select the manifest.json file in the extension folder
  • Click on Reload for good measure

Chrome

  • Enter chrome://extensions/ in the address bar
  • Toggle Developer Mode (top-right) if you haven't already
  • Click on Load unpacked
  • Select the entire extension folder

Start a server with your model

As the first command line argument, pass the path to the directory containing the model you trained above.

python server.py ../Downloads/output

Usage

  • Once you haver the browser extension and the server working, go to https://web.whatsapp.com/.
  • Make sure the extension is working (you should see a logo at the top-right of the screen indicating that the extension is active).
  • Now Click on any user you want to chat with, as usual.
  • Whenever you want You to fill in, press the tab key (you can tab to get the whole message prompt, or to finish a sentrence you've already started typing.)
  • Select one of the 3 prompts (keyboard and mouse supported), or press the Esc key to ignore the prompts.

ToDos

  • Model
    • Finetune DistilGPT2 on Whatsapp chat history
    • Preprocess and clean data
    • Compute uncertainty and filter responses
    • Compute recommended training data size
    • Experiment with conversation pre-training on a large corpus
    • Checkout other architectures
    • Experiment with platform flag in the same model to handle multiple chat platforms
  • UI
    • Chrome/Firefox extension for Whatsapp web (feature complete)
    • Extend to
      • Facebook/messeger
      • Hangouts
      • Gmail
      • Slack
      • Twitter
  • Access
    • Blog Post!
    • Make training easier (can it be any easier, though?)
    • Explore using tf.js in the extension to avoid the server (will allow many many more people to use it)

Contributing

Checkout the ToDos. Extending the UI to other platforms may be the easiest place to begin.

you's People

Contributors

nuwandavek avatar rishicomplex avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

you's Issues

Discord integration

Many of us (including me ๐Ÿ‘€) use a lot of Discord, I believe it wouldn't be so different from a Whatsapp conversation. Just a to-do proposal.

It would also be nice to be able to train the model on Discord conversations as well, with something like Discord chat exporter.

This project seems a lot of fun! I hope it goes well.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.