Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
laves committed Nov 20, 2023
1 parent da31ee8 commit e879114
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 10 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/python-perf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion demo/python/leopard_demo_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.')

Expand Down
5 changes: 4 additions & 1 deletion demo/python/leopard_demo_mic.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit e879114

Please sign in to comment.