cnph001 commited on
Commit
620f6e6
·
verified ·
1 Parent(s): 6d33d77

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -222,7 +222,7 @@ async def transcript_to_speech(transcript_text, voice, rate, pitch):
222
  if i > 0:
223
  previous_line_match = re.match(r'(\d{2}):(\d{2}):(\d{2}),(\d{3})\s+.*', lines[i-1])
224
  if previous_line_match:
225
- prev_h, prev_m, prev_s, prev_ms, _ = previous_line_match.groups()
226
  previous_start_time_ms = (
227
  int(prev_h) * 3600000 +
228
  int(prev_m) * 60000 +
@@ -310,4 +310,4 @@ async def create_demo():
310
  if __name__ == "__main__":
311
  demo = asyncio.run(create_demo())
312
  demo.launch()
313
-
 
222
  if i > 0:
223
  previous_line_match = re.match(r'(\d{2}):(\d{2}):(\d{2}),(\d{3})\s+.*', lines[i-1])
224
  if previous_line_match:
225
+ prev_h, prev_m, prev_s, prev_ms = previous_line_match.groups()
226
  previous_start_time_ms = (
227
  int(prev_h) * 3600000 +
228
  int(prev_m) * 60000 +
 
310
  if __name__ == "__main__":
311
  demo = asyncio.run(create_demo())
312
  demo.launch()
313
+