dwarkesh commited on
Commit
e71faf2
1 Parent(s): 4731011
Files changed (1) hide show
  1. app.py +2 -2
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