This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from google import genai | |
from google.genai import types | |
from PIL import Image | |
from io import BytesIO | |
import os | |
import subprocess | |
import tempfile | |
from global_config import global_config | |
from loguru import logger as log |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
╭────────────────────────────────────────────╮ | |
│ ✻ Welcome to Claude Code research preview! │ | |
│ │ | |
│ /help for help │ | |
│ │ | |
│ cwd: /Users/v/vic/dev/IC │ | |
╰────────────────────────────────────────────╯ | |
! cat InteractionCalculus.md |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// To use this, put it in a folder, install ytdl-core with `npm i ytdl-core`, then create a ZIP with the content of the folder and deploy it. | |
// https://docs.aws.amazon.com/lambda/latest/dg/nodejs-package.html#nodejs-package-dependencies | |
var AWS = require('aws-sdk'); | |
const ytdl = require('ytdl-core'); | |
const stream = require('stream'); | |
var s3 = new AWS.S3(); | |
exports.handler = async (event, context, cb) => { | |
const { videoUrl, key, bucket } = event; |