- Install Docker Desktop.
- Open a Terminal (Windows / Mac / Linux) and maximise it to the full size of your screen.
-
$ docker run --rm -it bcbcarl/hollywood
- To exit: Try mashing
Ctrl-D
andCtrl-C
. If you get to a terminal you can typeexit
to close the container.If this fails, just quit your terminal. 😁
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 datetime import datetime | |
import pytz | |
import boto3 | |
# define our CloudEvents client | |
client = boto3.client('events') | |
# Let's grab our current time in GMT and convert it to local time (US Central) | |
utc_time = datetime.utcnow().replace(tzinfo=pytz.utc) | |
# Set your timezone here! See timezones here: https://gist.github.com/heyalexej/8bf688fd67d7199be4a1682b3eec7568 |
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 sys | |
import whisper | |
from whisper.utils import write_srt | |
def run(input_path: str, output_path: str) -> None: | |
model = whisper.load_model("base") | |
result = model.transcribe(input_path) |
OlderNewer