Spaces:
Running
Running
jhj0517
commited on
Commit
·
f56c9fb
1
Parent(s):
56ede93
added type hint
Browse files
modules/faster_whisper_inference.py
CHANGED
@@ -336,7 +336,7 @@ class FasterWhisperInference(BaseInterface):
|
|
336 |
return subtitle
|
337 |
|
338 |
@staticmethod
|
339 |
-
def format_time(elapsed_time: float):
|
340 |
hours, rem = divmod(elapsed_time, 3600)
|
341 |
minutes, seconds = divmod(rem, 60)
|
342 |
|
|
|
336 |
return subtitle
|
337 |
|
338 |
@staticmethod
|
339 |
+
def format_time(elapsed_time: float) -> str:
|
340 |
hours, rem = divmod(elapsed_time, 3600)
|
341 |
minutes, seconds = divmod(rem, 60)
|
342 |
|