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 whisper | |
import pyaudio | |
import wave | |
import sys | |
import tempfile | |
from ctypes import * | |
# Load the Whisper model once | |
model = whisper.load_model("base.en") |
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 rtype = /^(?:button|input)$/i; | |
jQuery.attrHooks.type.set = function(elem, value) { | |
// We can't allow the type property to be changed (since it causes problems in IE) | |
if (rtype.test(elem.nodeName) && elem.parentNode) { | |
// jQuery.error( "type property can't be changed" ); | |
// JB: Or ... can it!? | |
var $el = $(elem); | |
var insertionFn = 'after'; |