FernanOrtega commited on
Commit
e9c550b
·
1 Parent(s): 2a76908

Added example to show translation to other language.

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -14,12 +14,14 @@ ydl = youtube_dl.YoutubeDL(ydl_opts)
14
  models = {
15
  "tiny": whisper.load_model("tiny"),
16
  "base": whisper.load_model("base"),
17
- "small": whisper.load_model("small")
 
18
  }
19
 
20
  examples = [
 
21
  ["base", "https://www.youtube.com/watch?v=kMNPv_HXffQ", "es"],
22
- ["tiny", "https://www.youtube.com/watch?v=-tJYN-eG1zk", "en"]
23
  ]
24
 
25
 
 
14
  models = {
15
  "tiny": whisper.load_model("tiny"),
16
  "base": whisper.load_model("base"),
17
+ "small": whisper.load_model("small"),
18
+ "medium": whisper.load_model("medium")
19
  }
20
 
21
  examples = [
22
+ ["tiny", "https://www.youtube.com/watch?v=-tJYN-eG1zk", "en"],
23
  ["base", "https://www.youtube.com/watch?v=kMNPv_HXffQ", "es"],
24
+ ["medium", "https://www.youtube.com/watch?v=XFkzRNyygfk", "es"]
25
  ]
26
 
27