Skip to content

Latest commit

 

History

History
63 lines (42 loc) · 1.68 KB

README.md

File metadata and controls

63 lines (42 loc) · 1.68 KB

Vdosumry

README in English 繁體中文文件

Introduction

Vdosumry converts speech from videos into text and then summarizes the text.

Prerequisites

  • ollama: Please install ollama before installing Vdosumry
  • poetry: Please install poetry before installing Vdosumry

Installation

Ensure your Python version is 3.11 or above, then install the dependencies using the following command:

poetry install

Usage

To generate a summary of a video, run the following command:

poetry run vdosumry https://www.youtube.com/watch\?v={youtube_youtube_id}

or

poetry run vdosumry "https://www.youtube.com/watch?v={youtube_youtube_id}"

Command Options

  • --output : Directory to save the summary (default: ./output)
  • --model-size : Size of the Whisper model (default: base)
  • --ollama-model : Ollama model to use for summarization (default: llama3.2)
  • --language : summarization language (default: zh-TW)
poetry run vdosumry "https://www.youtube.com/watch?v={youtube_youtube_id}" --output="./output" \
--model-size="base" --ollama-model="llama3.2" --language="zh-TW"

Contribution

Issues and pull requests are welcome. Please ensure your code adheres to the project's coding standards.

Linter

Use Ruff to lint your code before opening a pull request.

poetry run ruff format

License

This project is licensed under the MIT License.