This file contains 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
import torch | |
import whisper | |
def prompt_template_fn(prompt="Describe the sound of the given file"): | |
system_message = "You are a helpful AI who follows instruction carefully" | |
prompt_prefix = f"""<|im_start|>system | |
{system_message}<|im_end|> | |
<|im_start|>user | |
{prompt}""" |
This file contains 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
#!/usr/bin/env python3 | |
import multiprocessing | |
import time | |
import csv | |
import subprocess | |
import pathlib as pl | |
import os | |
def format_seconds(seconds): |
This file contains 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
{ | |
"apiVersion": "v1", | |
"kind": "PersistentVolume", | |
"metadata": { | |
"name": "test-0b-pv" | |
}, | |
"spec": { | |
"accessModes": [ | |
"ReadWriteOnce" | |
], |
This file contains 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
<script src="https://ekhoapp.herokuapp.com/embed/bootstrap.js?defaultProfile=__default&activated=true" async></script> |
This file contains 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
/** Precorded commands include | |
* | |
* 1. sidebar - toggle the sidebar on Youtube | |
*/ | |
// Copy and paste the following code into web console on https://youtube.com | |
var script= document.createElement('script'); | |
script.type= 'text/javascript'; | |
script.src= 'https://ekhoapp.herokuapp.com/embed/bootstrap.js?containerId=masthead-positioner&activated=true&defaultProfile=__default'; | |
document.head.appendChild(script); |
This file contains 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
var script= document.createElement('script'); | |
script.type= 'text/javascript'; | |
script.src= 'https://ekhoapp.herokuapp.com/embed/bootstrap.js'; | |
document.head.appendChild(script); |
This file contains 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
<script src="https://ekhoapp.herokuapp.com/embed/bootstrap.js?activated=true" async></script> |