Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ from moviepy.editor import AudioFileClip
|
|
7 |
import googletrans
|
8 |
from googletrans import Translator
|
9 |
|
10 |
-
pipe = pipeline(model="
|
11 |
|
12 |
def download_from_youtube(url):
|
13 |
streams = YouTube(url).streams.filter(only_audio=True, file_extension='mp4') #Downloads the video from the given YouTube URL and returns the path to the audio file.
|
|
|
7 |
import googletrans
|
8 |
from googletrans import Translator
|
9 |
|
10 |
+
pipe = pipeline(model="Rafat0421/whisper-small-hi")
|
11 |
|
12 |
def download_from_youtube(url):
|
13 |
streams = YouTube(url).streams.filter(only_audio=True, file_extension='mp4') #Downloads the video from the given YouTube URL and returns the path to the audio file.
|