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
import whisper | |
import ffmpeg | |
import os | |
def main(video_file, language="en"): | |
# Load the Whisper model | |
print("Loading Whisper model...") | |
model = whisper.load_model("base") | |
# Paths for the audio and output text filese |
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
let test1Passed, test2Passed; | |
pm.test("Test 1", function() { | |
try { | |
pm.expect(true).to.equal(true) | |
test1Passed = true; | |
} catch (err) { | |
test1Passed = false; | |
} | |
}); |