The goal of this project is to create a virtual personality, interacting with the world through Instagram. This "person" (as I will refer to it) is able to both react to existing content on Instagram, as well as create complete posts of its own. This "person" is able to emulate whatever personality you want, allowing you to reach vast audiences
This instruction set is made for Windows.
- Download the stable difussion webui (by AUTOMATIC1111), following the guide here
- Edit the
webui-user.bat
file in the repo and add the--api
flag to theCOMMANDLINE_ARGS
parameter. - Download the RealisticVision2.0 model and place it in the
/models/Stable-diffusion/
folder of the stable diffusion webui repo. - Download the associated VAE decoder and place it in
/models/VAE/
- Download this repo into a folder of your choice with
git clone https://github.com/Hillo111/InfluencerAI.git
- Navigate to the repo and download requirements
cd degeneracy
pip install -r requirements.txt
-
Open up
config.py
-
Get an OpenAI API key and set it to the
OPEN_AI_API_KEY
variable -
Go to Instagram and create an account. I suggest using an email from a temporary email site. Alternatively, you could use an existing account, but I highly advise against it, as its likely that at some point Instagram will suspend the acount.
-
Set the
ACCOUNT_EMAIL
andACCOUNT_PASSWORD
variables
You can always set these again whenever the account gets suspended.
- The program locally saves all images and their prompts. Set
IMAGES_FOLDER
to the folder where you want these saved. This must be set to a valid folder, or posting will not work. - Next, customize the
CHARACTER
however you want. Keep in mind that- The location name must be a real place
- All parameters in string form are sent as is to ChatGPT and the SD model - i.e. you can set it to whatever you want, as long as it makes logical sense
- Values with a decimal are 0.0 - 1.0
- Run
webui-user.bat
. Wait until you seeRunning on local URL: http://127.0.0.1:7860
. - In a new command prompt window, navigate to this repo and run
python main.py
Now, you should see the scheduler create two events. Upon reaching the time specified, an Instagram window will be opened and the "person" will either make a post or react to some posts. Do not close the command prompt or it will not work.
- Alternatively, if you want to see the posting or reacting immediatley, you can instead run
test_post.py
ortest_responses.py
instead.