Giter Site home page Giter Site logo

gptutor-server's Introduction

Whisper toolkit

flask server instructions

flask --app server run

Youtube Transcription

--- How to use ---

Export notebook as transcribe_youtube.py, then import to use the key functions

example usage

In your Python script/notebook:

from transcribe_youtube import get_transcription_from_youtube_url, get_transcriptions_from_youtube_playlist

PLAYLIST_URL = "https://www.youtube.com/playlist?list=PL9zq2zalZB1JRZsPtYeFVQAZkrDbZx3Qw" # My Learning Playlist 
TEST_URL = "https://www.youtube.com/watch?v=vaUy6zyJfwU" # 1 minute video 

# get transcription for a single video 
single_video_transcription = get_transcription_from_youtube_url(TEST_URL)

# get transcriptions for all videos in a playlist
playlist_transcriptions = get_transcriptions_from_youtube_playlist(PLAYLIST_URL)

return object

Returns a dict with title, url, and transcription

Usage

Post an article with text

curl -X POST http://127.0.0.1:5000/article
   -H 'Content-Type: application/json'
   -d '{"title": "Fierce Nerds", "url": "http://www.paulgraham.com/fn.html", "content": "Most people think of nerds as quiet, diffident people"}'

Transcribe a video

{'title': 'Deep Learning Maps Animal Movement',
 'url': 'https://www.youtube.com/watch?v=vaUy6zyJfwU',
 'transcription': ' We developed a new type of 3D deep learning approach that can take in normal color videos of behaving animals and behaving humans and then output the precise 3D locations of body landmarks so skeletal joints that you can track over time and thus provide a comprehensive description of how subjects are moving. This is a huge leap forward compared to a traditional motion capture system in which subjects need to wear highly invasive markers on the body. And then another big issue with motion captures that it requires that you have a clear line of sights to these markers and in a deep learning-based approach that we develop, we relieve this requirement.'}

Fetch your browsing data

curl http://127.0.0.1:5000/getCSV

gptutor-server's People

Contributors

stephenkfrey avatar kylejmorris 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.