Tweeter is a web app that uses AI Llama 2 70b to create tweet drafts, which you can post in a single click!
-
Clone the repository by running the command below or clicking here
$ git clone https://github.com/vismodo/tweeter.git
-
Navigate to the repository
$ cd tweeter
-
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
-
Modify the file
src/settings.json
to match your requirements. -
Create an app in the Twitter Developer Dashboard and copy the OAuth credentials to
src/.env
- Run the main server script (Using flask)
You can find the web app running at
$ cd tweeter/src $ source ../twitter_env/bin/activate # On Linux $ ../tweeter_env\Scripts\activate.bat # On Windows $ flask --app main run
http://localhost:5000/
- 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
Yes, you can. Just use
--host 0.0.0.0
when running the flask server.