Spaces:
Running
Running
ziqiangao
commited on
Commit
·
2c9b6e2
1
Parent(s):
83b9732
update.app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ import LRC2SRT
|
|
21 |
path = "" # Update with your path
|
22 |
|
23 |
def safe_read(i: int, a: list):
|
24 |
-
if i
|
25 |
return 0
|
26 |
else:
|
27 |
return a[i]
|
@@ -245,7 +245,7 @@ def main(file, name, fps=30, res: tuple=(1280,720), oscres=512, sr=11025, lyrics
|
|
245 |
|
246 |
|
247 |
except Exception as e:
|
248 |
-
print('Ended in error: ' + traceback.format_exc())
|
249 |
#gr.Info("Rendering had errored, this typically an out of range error")
|
250 |
p = gr.Progress()
|
251 |
p(0.5,desc="Compiling video")
|
|
|
21 |
path = "" # Update with your path
|
22 |
|
23 |
def safe_read(i: int, a: list):
|
24 |
+
if i >= len(a):
|
25 |
return 0
|
26 |
else:
|
27 |
return a[i]
|
|
|
245 |
|
246 |
|
247 |
except Exception as e:
|
248 |
+
print('Ended in error: ' + traceback.format_exc(), iii)
|
249 |
#gr.Info("Rendering had errored, this typically an out of range error")
|
250 |
p = gr.Progress()
|
251 |
p(0.5,desc="Compiling video")
|