Giter Club home page Giter Club logo

transcript-ai's Introduction

Readable YouTube Transcript Formatter

This project utilizes Python's YouTubeTranscriptApi to fetch transcripts for YouTube videos and then processes them with a Local Language Model (LLM) to format the text into well-structured and readable sentences.

Prerequisites

Before you begin, ensure you have met the following requirements:

  • Python 3.x installed on your system.
  • Access to a Local Language Model executable and model binary file.
  • The YouTubeTranscriptApi Python package installed.

Installation

Clone the repository to your local machine:

git clone https://your-repository-url.git
cd your-repository-directory

Installation

Clone the repository to your local machine:

git clone https://your-repository-url.git
cd your-repository-directory

Install the required Python packages:

pip install -r requirements.txt

Usage

The script can be run with the following command:

python3 transcript_formatter.py

Make sure to update the paths in the invoke_llama function to point to your Local Language Model executable and model binary file.

Configuration

The invoke_llama function takes two arguments:

input_file: The path to the file containing the raw transcript text. output_file: The path where the formatted transcript text will be saved. These files are currently set to 'raw_transcript.txt' and 'clean_transcript.txt', respectively, and can be changed as per your requirements.

Contributing

Contributions to this project are welcome. To contribute:

  • Fork the project.
  • Create a new branch (git checkout -b feature/YourFeature).
  • Make your changes.
  • Commit your changes (git commit -am 'Add some feature').
  • Push to the branch (git push origin feature/YourFeature).
  • Open a pull request.

License

GPL-3.0

Contact

If you want to contact me you can reach me at [email protected].

Acknowledgements

Thank you to the authors of the YouTubeTranscriptApi and the Local Language Model for making their tools available for public use.

transcript-ai's People

Contributors

ktleary avatar

Stargazers

 avatar

Watchers

 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.