Giter Site home page Giter Site logo

jalvarezz13 / summarai Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 63.46 MB

SummarAI utilizes PyMovie and Whisper to transcribe videos, enabling you to ask questions about the content using Llama2 and Llama-index for insightful interaction.

License: MIT License

Python 100.00%
llama-index llama2 pymovie whisper

summarai's Introduction

๐Ÿฆ™ SummarAI ๐Ÿค–

Table of Contents

๐Ÿ“ข What is SummarAI?

SummarAI employs the combination of PyMovie and Whisper to provide video transcription services, allowing users to ask questions about the video's content with the help of Llama2 and LlamaIndex for more engaging and insightful interactions.

SummarAI is divided into three different files:

  • 1_extract_audio.py: This file utilizes the PyMovie library to extract audio from the specified video in a matter of seconds.

  • 2_transcribe_audio.py: In this case, the "speech recognition" model from OpenAI, known as Whisper, is used to transcribe the audio into a text file.

  • 3_llm_over_data: Finally, this file makes use of LlamaIndex, which, based on the Llama2-13B model, provides context to the data from the previously prepared video and responds accurately within that context.

โš™๏ธ Execution

To run the SummarAI, you can use pipenv. First, ensure you have pipenv installed. Then, navigate to the root directory of the project, where you can install the dependencies and activate the virtual environment using the following commands:

pipenv install
pipenv shell

Afterwards, simply run the file you want using one of these commands:

python 1_extract_audio.py
python 2_transcribe_audio.py
python 3_llm_over_data.py

โญ Current features

โœ… Extract audio from videos

โœ… Transcribe audio using Whisper

โœ… Resolve your inquiries with the assistance of Llama2

โš’๏ธ Troubleshooting

If you encounter issues while installing the llama-cpp-python library, you may need to run the following commands:

set CMAKE_ARGS=-DLLAMA_CUBLAS=on
set FORCE_CMAKE=1

If the error persists, please check your C compiler (gcc) or, if you are using Windows, update/install the "Desktop development with C++" feature by utilizing the Microsoft C++ Build Tools


Made with โค๏ธ by jalvarezz13
Logo generated using DALL-E 3

summarai's People

Contributors

jalvarezz13 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.