Skip to content

Leveraging GPT-4 and Twitter API, TwitterGPT offers insightful answers to user questions based on real-time Twitter data, served through a user-friendly Gradio interface.

License

Notifications You must be signed in to change notification settings

Joseph-M-Cook/TwitterGPT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Leveraging GPT-4 and Twitter API, TwitterGPT offers insightful answers to user questions based on real-time Twitter data, served through a user-friendly Gradio interface.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages