sreepathi-ravikumar commited on
Commit
2eb9e3b
·
verified ·
1 Parent(s): c2bcfbf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -547,7 +547,10 @@ def generate_video():
547
  #audio generating code here
548
  best=lst[1].split("&&&")
549
  lines=best[0]
550
- lang=best[1]
 
 
 
551
  length, audio_path = audio_func(0, lines, lang)
552
  if not length or not audio_path:
553
  print("Failed to generate audio.")
 
547
  #audio generating code here
548
  best=lst[1].split("&&&")
549
  lines=best[0]
550
+ try:
551
+ lang=best[1]
552
+ except:
553
+ print(best)
554
  length, audio_path = audio_func(0, lines, lang)
555
  if not length or not audio_path:
556
  print("Failed to generate audio.")