Skip to content

Instantly share code, notes, and snippets.

View diyism's full-sized avatar

Malcolm Ke Win diyism

View GitHub Profile
# Install dependencies "pip install youtube_transcript_api langchain"
# Run with "OPENAI_API_KEY=xxxx python summarize.py <youtube_id>"
import sys
from youtube_transcript_api import YouTubeTranscriptApi
from langchain import OpenAI, PromptTemplate
from langchain.text_splitter import TokenTextSplitter
from langchain.prompts import PromptTemplate
@diyism
diyism / build_waydroid_v5.sh
Created June 11, 2022 10:35 — forked from cniw/build_waydroid_v8.sh
Build Waydroid for Debian or Ubuntu based distro v5
#!/bin/bash
# script name: build_waydroid_v5.sh
# description: Build Waydroid for Debian or Ubuntu based distro v5
# upstream : https://gist.github.com/cniw/98e204d7dbc73a3fa1bf61629b2a2fc1
# author : Wachid Adi Nugroho <wachidadinugroho.maya@gmail.com>
# date : 2022-05-11
NC='\033[0m'
RED='\033[1;91m'
GREEN='\033[1;92m'