Coder Social home page Coder Social logo

youtube-summarizer's Introduction

YouTube Video Summarizer using FastAPI

This application utilizes FastAPI to provide a summarization of YouTube video transcriptions using llama3 from ollama.

Setup Instructions

  1. Install Dependencies

    Ensure you have Python installed. Then install FastAPI and ollama:

    pip install -r requirements.txt
  2. Run ollama with llama3

    Before running the FastAPI server, ensure ollama is installed and set up to run llama3. Follow ollama's documentation for installation and configuration instructions to start the llama3 service.

  3. Run the Application

    Run the FastAPI server using Uvicorn:

    uvicorn main:app --reload

    The API server will start running locally at http://localhost:8000.

  4. Usage

  • Access the FastAPI interactive documentation at http://localhost:8000/docs.

  • Use the /summarize endpoint to submit a POST request with a JSON payload containing the YouTube video link.

  • Example request:

    {
      "link": "https://www.youtube.com/watch?v=<yourvideoid>"
    }
  • The API will process the video transcription using llama3 from ollama and return a summarized text response.

  1. Endpoint
  • POST /summarize: Endpoint to summarize the transcription of a YouTube video.
  1. Dependencies
  • FastAPI: FastAPI framework for building APIs with Python.
  • Uvicorn: ASGI server for running FastAPI applications.
  • ollama: Python package for working with llama3 transcription services.
  • youtube-transcript-api: Python package which allows you to get the transcripts/subtitles for a given YouTube video.
  1. Note
  • Make sure to have appropriate API keys or configurations set up for llama3 as per ollama's documentation.

youtube-summarizer's People

Watchers

Subodh Bijwe 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.