mirari commited on
Commit
954a792
·
verified ·
1 Parent(s): 278d749

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -0
app.py CHANGED
@@ -8,6 +8,18 @@ loaded_model = whisper.load_model("medium")
8
  current_size = 'medium'
9
 
10
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  def inference(link):
12
  yt = YouTube(link)
13
  #yt = YouTube(link, on_progress_callback=on_progress, use_po_token=True)
 
8
  current_size = 'medium'
9
 
10
 
11
+ from pytube. innertube import _default_clients
12
+
13
+ _default_clients[ "ANDROID"][ "context"]["client"]["clientVersion"] = "19.08.35"
14
+ _default_clients["IOS"]["context"]["client"]["clientVersion"] = "19.08.35"
15
+ _default_clients[ "ANDROID_EMBED"][ "context"][ "client"]["clientVersion"] = "19.08.35"
16
+ _default_clients[ "IOS_EMBED"][ "context"]["client"]["clientVersion"] = "19.08.35"
17
+ _default_clients["IOS_MUSIC"][ "context"]["client"]["clientVersion"] = "6.41"
18
+ _default_clients[ "ANDROID_MUSIC"] = _default_clients[ "ANDROID_CREATOR" ]
19
+
20
+
21
+
22
+
23
  def inference(link):
24
  yt = YouTube(link)
25
  #yt = YouTube(link, on_progress_callback=on_progress, use_po_token=True)