Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 1.06 KB

README.md

File metadata and controls

34 lines (24 loc) · 1.06 KB

TwitterGPT

Ex. 1

Overview

TwitterGPT uses OpenAI's GPT-4 model to generate context-aware search queries based on user input. It then fetches corresponding tweets using Twitter's Search API and summarizes the results, providing insightful answers to user queries.

Installation

  1. Clone the repository:
git clone https://github.com/Joseph-M-Cook/TwitterGPT.git
  1. Install the required dependencies:
pip install -r requirements.txt
  1. Set up API keys and private IDs. You need to provide your own API keys for both Twitter and OpenAI.

    • consumer_key
    • consumer_secret
    • access_token
    • access_token_secret
    • gpt_api_key
  2. Run the script and open the Gradio interface in your browser

Disclaimer

Please use this responsibly and ensure you comply with both OpenAI's and Twitter's terms of service.

License

This project is licensed under the MIT License. See the LICENSE file for details.