Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -2,8 +2,8 @@ import gradio as gr
|
|
2 |
import whisper
|
3 |
from pytube import YouTube
|
4 |
|
5 |
-
loaded_model = whisper.load_model("
|
6 |
-
current_size = '
|
7 |
def inference(link):
|
8 |
yt = YouTube(link)
|
9 |
path = yt.streams.filter(only_audio=True)[0].download(filename="audio.mp4")
|
@@ -35,7 +35,7 @@ with block:
|
|
35 |
)
|
36 |
with gr.Group():
|
37 |
with gr.Box():
|
38 |
-
sz = gr.Dropdown(label="Model Size", choices=['base','small', 'medium', 'large'], value='
|
39 |
|
40 |
link = gr.Textbox(label="YouTube Link")
|
41 |
|
|
|
2 |
import whisper
|
3 |
from pytube import YouTube
|
4 |
|
5 |
+
loaded_model = whisper.load_model("medium")
|
6 |
+
current_size = 'medium'
|
7 |
def inference(link):
|
8 |
yt = YouTube(link)
|
9 |
path = yt.streams.filter(only_audio=True)[0].download(filename="audio.mp4")
|
|
|
35 |
)
|
36 |
with gr.Group():
|
37 |
with gr.Box():
|
38 |
+
sz = gr.Dropdown(label="Model Size", choices=['tiny', 'base','small', 'medium', 'large'], value='medium')
|
39 |
|
40 |
link = gr.Textbox(label="YouTube Link")
|
41 |
|