MCPcopy Create free account
hub / github.com/InternScience/InternAgent / duration_formatter

Function duration_formatter

tasks/AutoTTS/code/experiment/utils.py:79–88  ·  view source on GitHub ↗
(seconds)

Source from the content-addressed store, hash-verified

77 return {}
78
79def duration_formatter(seconds):
80 hours = seconds // 3600
81 minutes = (seconds % 3600) // 60
82 seconds = seconds % 60
83 if hours > 0:
84 return f"{int(hours):02d}h:{int(minutes):02d}m:{int(seconds):02d}s"
85 elif minutes > 0:
86 return f"{int(minutes):02d}m:{int(seconds):02d}s"
87 else:
88 return f"{int(seconds):02d}s"
89
90def calculate_depth(sub_questions: list):
91 try:

Callers 2

runMethod · 0.90
optimize_datasetFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected