terry-li-hm
commited on
Commit
·
09b9a40
1
Parent(s):
c15cb6e
Update
Browse files
sv.py
CHANGED
@@ -200,12 +200,6 @@ def format_time(seconds, use_short_format=True, always_use_seconds=False):
|
|
200 |
return f"{hours:02d}:{minutes:02d}:{seconds:06.3f}"
|
201 |
|
202 |
|
203 |
-
def format_time_with_leading_zeros(seconds):
|
204 |
-
formatted = f"{seconds:06.3f}s"
|
205 |
-
print(f"Debug: Input seconds: {seconds}, Formatted output: {formatted}")
|
206 |
-
return formatted
|
207 |
-
|
208 |
-
|
209 |
def generate_diarization(audio_path):
|
210 |
# Get the Hugging Face token from the environment variable
|
211 |
hf_token = os.environ.get("HF_TOKEN")
|
|
|
200 |
return f"{hours:02d}:{minutes:02d}:{seconds:06.3f}"
|
201 |
|
202 |
|
|
|
|
|
|
|
|
|
|
|
|
|
203 |
def generate_diarization(audio_path):
|
204 |
# Get the Hugging Face token from the environment variable
|
205 |
hf_token = os.environ.get("HF_TOKEN")
|