Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -1,20 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import os
|
2 |
-
|
3 |
-
|
4 |
-
import
|
5 |
-
import requests
|
6 |
-
import re
|
7 |
import random
|
8 |
-
import
|
9 |
import math
|
10 |
-
|
11 |
from moviepy.editor import (
|
12 |
VideoFileClip, concatenate_videoclips, AudioFileClip, ImageClip,
|
13 |
-
CompositeVideoClip, TextClip
|
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
|