SuperSummarizeAI is a versatile Python tool designed to extract and summarize textual content. Whether it's from a provided webpage URL, a YouTube video link, or a PDF file, this tool processes the content through ChatGPT to generate an insightful summary. Once the summary is ready, the tool copies the content directly to your clipboard for quick access and sharing. Additionally, with its multilingual capabilities, SuperSummarizeAI can cater to a global audience, generating summaries in various languages.
- Install SuperSummarizeAI using pip:
pip install ssai
- Set your OpenAI key using the following command, replacing
YOUR_OPENAI_KEY
with your actual OpenAI key (You can get one here):
ssai --OPENAI_KEY=YOUR_OPENAI_KEY
- Tap into the SuperSummarizeAI repository:
brew tap alexandrevl/supersummarizeai
- Install SuperSummarizeAI:
brew install ssai
- Set your OpenAI key using the following command, replacing
YOUR_OPENAI_KEY
with your actual OpenAI key (You can get one here):
ssai --OPENAI_KEY=YOUR_OPENAI_KEY
- Ensure you have Python 3 installed on your system.
- Clone the repository to your local machine:
git clone https://github.com/alexandrevl/SuperSummarizeAI.git
- Navigate to the cloned directory:
cd SuperSummarizeAI
- Install the required packages using pip:
pip install -r requirements.txt
- Set your OpenAI key using the following command, replacing
YOUR_OPENAI_KEY
with your actual OpenAI key (You can get one here):
python ssai.py --OPENAI_KEY=YOUR_OPENAI_KEY
For security reasons, always ensure that your .env
file remains confidential. Do not share or expose it as it contains sensitive API credentials.
Simply provide the desired URL (webpage or YouTube video) or PDF file as a command-line argument:
ssai <TARGET>
For instance:
ssai https://example.com
or
ssai MY_PDF.pdf
For multilingual summaries, specify your desired language using the --lang
option (default is 'brazilian portuguese'):
ssai <TARGET> --lang <desired_language>
For instance:
ssai https://example.com --lang english
For adding context to the AI, use the --context
option:
ssai <TARGET> --context <context>
For instance:
ssai https://youtube.com/watch?v=example --context "The name of the presenter is John Doe"
For more information on the available options, run:
ssai --help
To employ SuperSummarizeAI, provide the desired URL (webpage or YouTube video) or PDF file as a command-line argument:
python ssai.py <TARGET>
For instance:
python ssai.py https://example.com
or
python ssai.py MY_PDF.pdf
For multilingual summaries, specify your desired language using the --lang
option (default is 'brazilian portuguese'):
python ssai.py <TARGET> --lang <desired_language>
For instance:
python ssai.py https://example.com --lang english
For give a context to the AI, use the --context
option:
python ssai.py <TARGET> --context <context>
For instance:
python ssai.py https://youtube.com/watch?v=example --context "The name of presenter is John Doe"
For more information on the available options, run:
python ssai.py --help
See SuperSummarizeAI in action:
- TARGET Input: Make sure the URL you input is correctly formatted and always begins with
http://
orhttps://
. For PDF files, ensure the file is in the same directory as the script or provide the full path to the file. - Dependencies: Double-check to ensure all required dependencies are correctly installed. If you encounter any errors, try reinstalling the dependencies using
pip install -r requirements.txt
.
Interested in contributing to SuperSummarizeAI? We'd love to collaborate! Please initiate by opening an issue to discuss the changes you'd like to make.
Licensed under MIT.