Spaces:
Build error
Build error
fix
Browse files
app.py
CHANGED
@@ -83,9 +83,9 @@ def time(secs):
|
|
83 |
def get_output(segments):
|
84 |
output = ''
|
85 |
for (i, segment) in enumerate(segments):
|
86 |
-
if i > 0:
|
87 |
-
output += '\n\n'
|
88 |
if i == 0 or segments[i - 1]["speaker"] != segment["speaker"]:
|
|
|
|
|
89 |
output += segment["speaker"] + ' ' + str(time(segment["start"])) + '\n\n'
|
90 |
output += segment["text"][1:] + ' '
|
91 |
return output
|
|
|
83 |
def get_output(segments):
|
84 |
output = ''
|
85 |
for (i, segment) in enumerate(segments):
|
|
|
|
|
86 |
if i == 0 or segments[i - 1]["speaker"] != segment["speaker"]:
|
87 |
+
if i != 0:
|
88 |
+
output += '\n\n'
|
89 |
output += segment["speaker"] + ' ' + str(time(segment["start"])) + '\n\n'
|
90 |
output += segment["text"][1:] + ' '
|
91 |
return output
|