ziqiangao commited on
Commit
2976e81
·
1 Parent(s): db8f7af

Update app.py

Browse files
Files changed (2) hide show
  1. LRC2SRT.py +2 -0
  2. app.py +3 -1
LRC2SRT.py CHANGED
@@ -43,6 +43,8 @@ def convert_line(number, chunk):
43
  info = Parse.get_line_info(LRC[number])
44
  if number+1 < len(LRC):
45
  info1 = Parse.get_line_info(LRC[number+1])
 
 
46
  print(info)
47
  tmp = ""
48
  i = 0
 
43
  info = Parse.get_line_info(LRC[number])
44
  if number+1 < len(LRC):
45
  info1 = Parse.get_line_info(LRC[number+1])
46
+ else:
47
+ info1 = None
48
  print(info)
49
  tmp = ""
50
  i = 0
app.py CHANGED
@@ -305,7 +305,9 @@ iface = gr.Interface(
305
  ],
306
  outputs=gr.components.Video(label="Output"),
307
  title="MP3 to Video Visualization",
308
- description="Upload an MP3 file and configure parameters to create a visualization video.\nOptionally upload a word or line synced lyric file"
 
 
309
  )
310
 
311
  # Launch Gradio interface
 
305
  ],
306
  outputs=gr.components.Video(label="Output"),
307
  title="MP3 to Video Visualization",
308
+ description=""" Upload an MP3 file and configure parameters to create a visualization video.
309
+ Optionally upload a word or line synced lyric file
310
+ Ensure a blank line at the end to avoid conversion errors"""
311
  )
312
 
313
  # Launch Gradio interface