sreepathi-ravikumar commited on
Commit
020e681
·
verified ·
1 Parent(s): ea26699

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -14,7 +14,7 @@ from mutagen.mp3 import MP3
14
  from gtts import gTTS
15
  import os
16
 
17
- def video_func(id):
18
  tts = gTTS(text=lines[id], lang='ta', slow=False)
19
  filename = "audio"+str(id)+".mp3"
20
  tts.save(filename)
@@ -142,7 +142,7 @@ def generate_video():
142
  for id in range(len(lines)):
143
  create_text_image(lines[id],id,image_olst)
144
  for i in range(len(lines)):
145
- video_func(i)
146
  clips = []
147
  for id in range(len(lines)):
148
  clip = VideoFileClip(f"clip{id}.mp4")
 
14
  from gtts import gTTS
15
  import os
16
 
17
+ def video_func(id,lines):
18
  tts = gTTS(text=lines[id], lang='ta', slow=False)
19
  filename = "audio"+str(id)+".mp3"
20
  tts.save(filename)
 
142
  for id in range(len(lines)):
143
  create_text_image(lines[id],id,image_olst)
144
  for i in range(len(lines)):
145
+ video_func(i,lines)
146
  clips = []
147
  for id in range(len(lines)):
148
  clip = VideoFileClip(f"clip{id}.mp4")