Spaces:
Running
Running
ziqiangao
commited on
Commit
·
ca1a3de
1
Parent(s):
e7c405a
update app.py
Browse files
app.py
CHANGED
@@ -167,6 +167,7 @@ def main(file, name, fps=30, res: tuple=(1280,720), oscres=512, sr=11025, lyrics
|
|
167 |
p(0.5,"parsing lyrics")
|
168 |
try:
|
169 |
outf = open("out.srt",mode="x", encoding="UTF8")
|
|
|
170 |
sf = open(lyrics, encoding="UTF8").read()
|
171 |
if sf[0] == '[':
|
172 |
gr.Info("Lyrics of LRC type was detected, converting to SRT")
|
@@ -226,7 +227,7 @@ def main(file, name, fps=30, res: tuple=(1280,720), oscres=512, sr=11025, lyrics
|
|
226 |
|
227 |
except Exception as e:
|
228 |
print('Ended in error: ' + traceback.format_exc())
|
229 |
-
gr.Info("Rendering had errored, this typically an out of range error")
|
230 |
p = gr.Progress()
|
231 |
p(0.5,desc="Compiling video")
|
232 |
print('FFMPEG')
|
|
|
167 |
p(0.5,"parsing lyrics")
|
168 |
try:
|
169 |
outf = open("out.srt",mode="x", encoding="UTF8")
|
170 |
+
print(lyrics)
|
171 |
sf = open(lyrics, encoding="UTF8").read()
|
172 |
if sf[0] == '[':
|
173 |
gr.Info("Lyrics of LRC type was detected, converting to SRT")
|
|
|
227 |
|
228 |
except Exception as e:
|
229 |
print('Ended in error: ' + traceback.format_exc())
|
230 |
+
#gr.Info("Rendering had errored, this typically an out of range error")
|
231 |
p = gr.Progress()
|
232 |
p(0.5,desc="Compiling video")
|
233 |
print('FFMPEG')
|