Spaces:
Running
Running
jhj0517
commited on
Commit
·
56ede93
1
Parent(s):
eeb8996
fix bug
Browse files
modules/faster_whisper_inference.py
CHANGED
@@ -227,7 +227,6 @@ class FasterWhisperInference(BaseInterface):
|
|
227 |
add_timestamp=True,
|
228 |
subformat=subformat
|
229 |
)
|
230 |
-
time_for_task = time.strftime("%H hours %M minute %S seconds", time.gmtime(time_for_task))
|
231 |
return f"Done in {self.format_time(time_for_task)}! Subtitle file is in the outputs folder.\n\n{subtitle}"
|
232 |
except Exception as e:
|
233 |
return f"Error: {str(e)}"
|
|
|
227 |
add_timestamp=True,
|
228 |
subformat=subformat
|
229 |
)
|
|
|
230 |
return f"Done in {self.format_time(time_for_task)}! Subtitle file is in the outputs folder.\n\n{subtitle}"
|
231 |
except Exception as e:
|
232 |
return f"Error: {str(e)}"
|