From e8791144de184a67508ef1a379a8f432be1b6e43 Mon Sep 17 00:00:00 2001 From: Ian Date: Mon, 20 Nov 2023 13:48:57 -0800 Subject: [PATCH] update --- .github/workflows/python-perf.yml | 16 ++++++++-------- demo/python/leopard_demo_file.py | 5 ++++- demo/python/leopard_demo_mic.py | 5 ++++- 3 files changed, 16 insertions(+), 10 deletions(-) diff --git a/.github/workflows/python-perf.yml b/.github/workflows/python-perf.yml index 17c0d361..6794b3ba 100644 --- a/.github/workflows/python-perf.yml +++ b/.github/workflows/python-perf.yml @@ -40,13 +40,13 @@ jobs: include: - os: ubuntu-latest init_performance_threshold_sec: 2.0 - proc_performance_threshold_sec: 0.7 + proc_performance_threshold_sec: 1.1 - os: windows-latest init_performance_threshold_sec: 2.5 - proc_performance_threshold_sec: 0.9 + proc_performance_threshold_sec: 1.4 - os: macos-latest init_performance_threshold_sec: 2.4 - proc_performance_threshold_sec: 0.9 + proc_performance_threshold_sec: 1.4 steps: - uses: actions/checkout@v3 @@ -75,19 +75,19 @@ jobs: include: - machine: rpi3-32 init_performance_threshold_sec: 7.6 - proc_performance_threshold_sec: 3.3 + proc_performance_threshold_sec: 4.1 - machine: rpi3-64 init_performance_threshold_sec: 8.4 - proc_performance_threshold_sec: 3.3 + proc_performance_threshold_sec: 4.1 - machine: rpi4-32 init_performance_threshold_sec: 5.7 - proc_performance_threshold_sec: 2.1 + proc_performance_threshold_sec: 3.1 - machine: rpi4-64 init_performance_threshold_sec: 5.1 - proc_performance_threshold_sec: 2.0 + proc_performance_threshold_sec: 3.0 - machine: jetson init_performance_threshold_sec: 5.1 - proc_performance_threshold_sec: 2.0 + proc_performance_threshold_sec: 3.0 steps: - uses: actions/checkout@v3 diff --git a/demo/python/leopard_demo_file.py b/demo/python/leopard_demo_file.py index 69872dd3..132647a6 100644 --- a/demo/python/leopard_demo_file.py +++ b/demo/python/leopard_demo_file.py @@ -59,7 +59,10 @@ def main(): transcript, words = o.process_file(wav_path) print(transcript) if args.verbose: - print(tabulate(words, headers=['word', 'start_sec', 'end_sec', 'confidence', 'speaker_tag'], floatfmt='.2f')) + print(tabulate( + words, + headers=['word', 'start_sec', 'end_sec', 'confidence', 'speaker_tag'], + floatfmt='.2f')) except LeopardActivationLimitError: print('AccessKey has reached its processing limit.') diff --git a/demo/python/leopard_demo_mic.py b/demo/python/leopard_demo_mic.py index 6a1d7987..c7f5ab62 100644 --- a/demo/python/leopard_demo_mic.py +++ b/demo/python/leopard_demo_mic.py @@ -129,7 +129,10 @@ def on_exit(_, __): transcript, words = leopard.process(recorder.stop()) print(transcript) if args.verbose: - print(tabulate(words, headers=['word', 'start_sec', 'end_sec', 'confidence', 'speaker_tag'], floatfmt='.2f')) + print(tabulate( + words, + headers=['word', 'start_sec', 'end_sec', 'confidence', 'speaker_tag'], + floatfmt='.2f')) except LeopardActivationLimitError: print('AccessKey has reached its processing limit.') print()