mirari commited on
Commit
5ade7c5
1 Parent(s): a68778f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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("base")
6
- current_size = 'base'
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='base')
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