testdeep123 commited on
Commit
01d24bf
·
verified ·
1 Parent(s): b6507d6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +21 -8
app.py CHANGED
@@ -1,20 +1,33 @@
 
 
 
 
 
 
1
  import os
2
- import moviepy # Keep this if needed elsewhere (e.g., for moviepy.config)
3
- # import moviepy.editor # No longer strictly needed if using 'from' import below
4
- import shutil
5
- import requests
6
- import re
7
  import random
8
- import time
9
  import math
10
- # Corrected import: Uncomment this block
11
  from moviepy.editor import (
12
  VideoFileClip, concatenate_videoclips, AudioFileClip, ImageClip,
13
- CompositeVideoClip, TextClip, CompositeAudioClip
14
  )
15
  import moviepy.video.fx.all as vfx
16
  import moviepy.config as mpy_config
17
  from pydub import AudioSegment
 
 
 
 
 
 
 
 
 
18
  from gtts import gTTS
19
  from PIL import Image, ImageDraw, ImageFont
20
  import numpy as np
 
1
+ from kokoro import KPipeline
2
+ from IPython.display import display, Audio
3
+ import soundfile as sf
4
+ import torch
5
+ from IPython.display import display, Audio, HTML
6
+ import soundfile as sf
7
  import os
8
+ from moviepy.editor import VideoFileClip, AudioFileClip, ImageClip
9
+ from PIL import Image
10
+ import tempfile
 
 
11
  import random
12
+ import cv2
13
  import math
14
+ import os, requests, io, time, re, random
15
  from moviepy.editor import (
16
  VideoFileClip, concatenate_videoclips, AudioFileClip, ImageClip,
17
+ CompositeVideoClip, TextClip
18
  )
19
  import moviepy.video.fx.all as vfx
20
  import moviepy.config as mpy_config
21
  from pydub import AudioSegment
22
+ from pydub.generators import Sine
23
+ from google.colab import files
24
+ from PIL import Image, ImageDraw, ImageFont
25
+ import numpy as np
26
+ from bs4 import BeautifulSoup
27
+ import base64
28
+ from urllib.parse import quote
29
+ import pysrt
30
+ from gtts import gTTS
31
  from gtts import gTTS
32
  from PIL import Image, ImageDraw, ImageFont
33
  import numpy as np