Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -32,6 +32,10 @@ import nltk
|
|
32 |
from nltk.tokenize import word_tokenize
|
33 |
import pytube
|
34 |
from moviepy.editor import *
|
|
|
|
|
|
|
|
|
35 |
|
36 |
# Download necessary resources
|
37 |
nltk.download('punkt')
|
@@ -224,10 +228,6 @@ def generate_valid_filename(query):
|
|
224 |
#################################################
|
225 |
## NEW FUNCTIONS ##
|
226 |
#################################################
|
227 |
-
import whisper
|
228 |
-
import time
|
229 |
-
from pytubefix import YouTube
|
230 |
-
from pytubefix.cli import on_progress
|
231 |
|
232 |
|
233 |
def download_video_mp3(url):
|
|
|
32 |
from nltk.tokenize import word_tokenize
|
33 |
import pytube
|
34 |
from moviepy.editor import *
|
35 |
+
import whisper
|
36 |
+
import time
|
37 |
+
from pytubefix import YouTube
|
38 |
+
from pytubefix.cli import on_progress
|
39 |
|
40 |
# Download necessary resources
|
41 |
nltk.download('punkt')
|
|
|
228 |
#################################################
|
229 |
## NEW FUNCTIONS ##
|
230 |
#################################################
|
|
|
|
|
|
|
|
|
231 |
|
232 |
|
233 |
def download_video_mp3(url):
|