renatotn7 commited on
Commit
cfcc701
1 Parent(s): 3aecd1a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -75,7 +75,7 @@ if st.button('Processa'):
75
  string1=''
76
  for i, segment in enumerate(transcription, start=1):
77
  # write srt lines
78
- string1=string1+"\n" + f"{i}\n"+ f"{utils.format_timestamp(segment['start'], always_include_hours=True, decimal_marker=',')} --> " + f"{utils.format_timestamp(segment['end'], always_include_hours=True, decimal_marker=',')}\n"+ f"{segment['text'].strip().replace('-->', '->')}\n";
79
 
80
 
81
  st.write(string1 )
 
75
  string1=''
76
  for i, segment in enumerate(transcription, start=1):
77
  # write srt lines
78
+ string1=string1+"\n" + f"{str(i)}\n"+ f"{utils.format_timestamp(segment['start'], always_include_hours=True, decimal_marker=',')} --> " + f"{utils.format_timestamp(segment['end'], always_include_hours=True, decimal_marker=',')}\n"+ f"{segment['text'].strip().replace('-->', '->')}\n";
79
 
80
 
81
  st.write(string1 )