Clone this repository or download the source code. Install the required dependencies:
To run the application:
-
Clone this repository or download the source code:
git clone https://github.com/mixelpixx/summary-tool.git cd summary-tool
-
Install the required dependencies:
pip install -r requirements.txt
-
Set up your OpenAI API key:
- Create a
.env
file in the root directory of the project - Add your OpenAI API key to the
.env
file:OPENAI_API_KEY=your_api_key_here
- Create a
-
Run the application:
python sumsum3.py
-
The Gradio interface will launch in your default web browser.
-
Use the interface to:
- Upload a markdown or text file
- Set the chunk size (default: 1000 words)
- Set the overlap between chunks (default: 100 words)
- Specify an output directory (optional)
- Provide custom instructions for the AI (optional)
-
Click "Submit" to generate the summary.
-
The application will process the file and provide links to the generated summary files.
- Chunk Size: Adjust this to control the length of text segments processed by the AI. Larger chunks may provide more context but take longer to process.
- Overlap: This determines how much text is shared between adjacent chunks, helping to maintain context across chunk boundaries.
- Custom Instructions: Use this to guide the AI's summarization style or focus. For example, "Focus on technical details" or "Summarize in a casual tone".
- If you encounter an API error, ensure your OpenAI API key is correctly set in the
.env
file. - For "File not found" errors, check that you're running the script from the correct directory.
- If summaries are too long or short, try adjusting the chunk size and overlap settings.
Contributions to the Advanced File Summarizer are welcome! Please follow these steps:
- Fork the repository
- Create a new branch for your feature
- Commit your changes
- Push to your branch
- Create a new Pull Request
This project is licensed under the MIT License. See the LICENSE
file for details.
For any questions or support, please contact [your email/contact information here].