We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 458a6ea + 7c3e709 commit b73c92cCopy full SHA for b73c92c
content/learning-paths/servers-and-cloud-computing/whisper/whisper.md
@@ -110,10 +110,7 @@ print(f'\n{result["text"]}\n')
110
111
# Calculate and print the duration of the inference
112
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'
+msg = f'\nInferencing elapsed time: {duration:4.2f} seconds\n'
117
118
print(msg)
119
```
0 commit comments