Skip to content

kshitijv09/py-text-summarizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Text Summarizer CLI Tool

This is a Python command-line tool for summarizing text using the Qwen2 0.5B model via the Ollama API. The tool can handle both text files and direct text input.

Prerequisites

  1. Python: Ensure you have Python installed. You can download it from python.org.
  2. Ollama: Download Ollama. You can download it from ollama.com.

Steps to Set Up and Run the Tool

Step 1: Download and Run Ollama

  1. Download Ollama:

    • Visit the Ollama website and download the appropriate version for your operating system.
  2. Run the Qwen2 0.5B Model:

    • Open a terminal and run the following command to start the Qwen2 0.5B model:
      ollama run qwen2:0.5b

Step 2: Clone the Repository

Clone this repository to your local machine:

git clone https://github.com/kshitijv09/py-text-summarizer.git
cd py-text-summarizer

Step 3: Install dependencied

pip install -r requirements.txt

Step 4: Run the tool

By providing a text file. In this case summary will be saved in a file summary.txt

python summarizer.py -t path/to/textfile.txt

Directly passing text as argument

python summarizer.py "Your direct text here"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages