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.
- Clone the repository:
git clone https://github.com/Joseph-M-Cook/TwitterGPT.git
- Install the required dependencies:
pip install -r requirements.txt
-
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
-
Run the script and open the Gradio interface in your browser
Please use this responsibly and ensure you comply with both OpenAI's and Twitter's terms of service.
This project is licensed under the MIT License. See the LICENSE file for details.