Git Product home page Git Product logo

profile-ai's Introduction

๐Ÿ“œ Archived Repository

This repository has been archived, due to recent change in Twitter API policy.

Profile_AI

An AI bot that utilizes GPT-3.5 to analyze user's Twitter profile.

File Structure

main.py

The main.py file contains the main code for the AI bot. It processes tweets, gets responses from GPT-3.5, and tweets the responses back to the users. The code also sets up authentication and streaming rules for the Twitter API.

app.py

The app.py file contains the code for the Flask web app. It connects to Redis to store and retrieve AI-generated responses for each user.

How to Run

Prerequisites

Ensure you have the following installed on your system:

  1. Python 3.6 or later
  2. Redis

Setup

  1. Install redis on your system (For more information, see Redis Installation).

  2. Clone the repository:

    git clone https://github.com/SuhJae/Profile_AI.git
    cd Profile_AI
    
  3. Create a virtual environment and activate it:

     python3 -m venv venv
     source venv/bin/activate
    
  4. Install the required dependencies:

    pip install -r requirements.txt
    
  5. Configure your config.ini and webapp/config.ini file with your API keys and redis database:

    • Obtain the necessary API keys for OpenAI and Twitter.
    • Update the config.ini file with your keys, redis database and any additional settings.
    • For webapp/config.ini, just provide the redis database and certainly not needed if you don't want to run the web app.

Running the Project

  1. Start the Redis server on your system.

  2. Run run.sh to start the AI bot and webapp/run.sh web app.

  3. If you are going to use web app, make sure you install production server like gunicorn and run it with gunicorn -w 4 app:app

profile-ai's People

Contributors

suhjae avatar

Stargazers

Lutica_CANARD avatar  avatar  avatar  avatar  avatar Lee Dogeon avatar

Watchers

Kostas Georgiou avatar  avatar

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.