Skip to content

Commit b73c92c

Browse files
authored
Merge pull request #1687 from JoeStech/clean_whisper_lp_timecalc
clean up unused items in the Whisper LP time calc
2 parents 458a6ea + 7c3e709 commit b73c92c

File tree

1 file changed

+1
-4
lines changed
  • content/learning-paths/servers-and-cloud-computing/whisper

1 file changed

+1
-4
lines changed

content/learning-paths/servers-and-cloud-computing/whisper/whisper.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,7 @@ print(f'\n{result["text"]}\n')
110110

111111
# Calculate and print the duration of the inference
112112
duration = end_time - start_time
113-
hours = duration // 3600
114-
minutes = (duration - (hours * 3600)) // 60
115-
seconds = (duration - ((hours * 3600) + (minutes * 60)))
116-
msg = f'\nInferencing elapsed time: {seconds:4.2f} seconds\n'
113+
msg = f'\nInferencing elapsed time: {duration:4.2f} seconds\n'
117114

118115
print(msg)
119116
```

0 commit comments

Comments
 (0)