vismodo / tweeter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tweeter

logo

Tweeter is a web app that uses AI Llama 2 70b to create tweet drafts, which you can post in a single click!

Screenshots

screenshot1

Installation & Setup

  1. Clone the repository by running the command below or clicking here

    $ git clone https://github.com/vismodo/tweeter.git
  2. Navigate to the repository

    $ cd tweeter
  3. Initialise a virtual environment and install the requirements

    $ virtualenv tweeter_env # Create a python virtual environment
    $ source twitter_env/bin/activate # On Linux
    $ tweeter_env\Scripts\activate.bat # On Windows
    $ pip install -r requirements.txt # Install dependencies
    $ cd src
  4. Modify the file src/settings.json to match your requirements.

  5. Create an app in the Twitter Developer Dashboard and copy the OAuth credentials to src/.env

Usage

  1. Run the main server script (Using flask)
    $ cd tweeter/src
    $ source ../twitter_env/bin/activate # On Linux
    $ ../tweeter_env\Scripts\activate.bat # On Windows
    $ flask --app main run
    You can find the web app running at http://localhost:5000/
  2. Run the background thinker service (optional) in a new terminal instance
    $ cd tweeter/src
    $ source ../twitter_env/bin/activate # On Linux
    $ ../tweeter_env\Scripts\activate.bat # On Windows
    $ python thinker.py # Run the script

FAQ

Can I run this on a Raspberry Pi?

Yes, you can. Just use --host 0.0.0.0 when running the flask server.

Credits

About


Languages

Language:Python 55.6%Language:HTML 32.8%Language:CSS 11.6%