Giter Club home page Giter Club logo

command-line-ai's Introduction

Text Summarizer CLI

A powerful command-line tool for summarizing text using the Qwen2 0.5B model via Ollama.

๐Ÿš€ Features

  • ๐Ÿ“„ Summarize text from a file
  • ๐Ÿ’ฌ Summarize text directly from command-line input
  • ๐Ÿค– Utilizes Ollama API with Qwen2 0.5B model
  • ๐Ÿ Built with Python and Click library for robust CLI functionality

๐Ÿ“‹ Prerequisites

Ensure you have the following installed:

  • Python 3.6+
  • Ollama
  • Qwen2 0.5B model (via Ollama)

๐Ÿ› ๏ธ Installation

  1. Clone the repository:
    git clone https://github.com/Abhishek676062/command-line-ai.git
    cd command-line-ai
    

Install required packages:

pip install -r requirements.txt

Pull the Qwen2 0.5B model:

ollama pull qwen2:0.5b

๐Ÿ“– Usage

Summarize from a file:

python summarizer.py -t book.txt

Summarize direct input:

python summarizer.py "Your text goes here. It can be multiple sentences."

๐ŸŒŸ Example

python summarizer.py "The quick brown fox jumped over the lazy dog. This sentence is used to demonstrate typing and display text in many languages."
Summary: This text describes a common pangram used to showcase fonts and typing skills, featuring a quick fox jumping over a lazy dog.

๐Ÿค Contributing

Contributions are welcome! Please fork the repository and submit a pull request with your changes.

๐Ÿ“„ License

This project is licensed under the MIT License.

๐Ÿ™ Acknowledgments

  • Ollama - For the API to run AI models locally
  • Qwen2 0.5B model developers
  • Click - For simplifying CLI creation in Python

This version of the README:

  • Uses emojis to make sections more visually distinctive
  • Formats code blocks consistently
  • Provides clearer visual separation between sections
  • Uses more concise language in some areas
  • Adds links to acknowledgments where applicable

command-line-ai's People

Contributors

abhishek676062 avatar

Watchers

Kostas Georgiou avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.