Spaces:
				
			
			
	
			
			
		Paused
		
	
	
	
			
			
	
	
	
	
		
		
		Paused
		
	Update app.py
Browse files
    	
        app.py
    CHANGED
    
    | @@ -2,6 +2,15 @@ import gradio as gr | |
| 2 | 
             
            import whisper
         | 
| 3 | 
             
            from pytube import YouTube
         | 
| 4 |  | 
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
| 5 | 
             
            loaded_model = whisper.load_model("medium")
         | 
| 6 | 
             
            current_size = 'medium'
         | 
| 7 | 
             
            def inference(link):
         | 
|  | |
| 2 | 
             
            import whisper
         | 
| 3 | 
             
            from pytube import YouTube
         | 
| 4 |  | 
| 5 | 
            +
            from pytube. innertube import _default_clients
         | 
| 6 | 
            +
             | 
| 7 | 
            +
            _default_clients[ "ANDROID"][ "context"]["client"]["clientVersion"] = "19.08.35"
         | 
| 8 | 
            +
            _default_clients["IOS"]["context"]["client"]["clientVersion"] = "19.08.35"
         | 
| 9 | 
            +
            _default_clients[ "ANDROID_EMBED"][ "context"][ "client"]["clientVersion"] = "19.08.35"
         | 
| 10 | 
            +
            _default_clients[ "IOS_EMBED"][ "context"]["client"]["clientVersion"] = "19.08.35"
         | 
| 11 | 
            +
            _default_clients["IOS_MUSIC"][ "context"]["client"]["clientVersion"] = "6.41"
         | 
| 12 | 
            +
            _default_clients[ "ANDROID_MUSIC"] = _default_clients[ "ANDROID_CREATOR" ]
         | 
| 13 | 
            +
             | 
| 14 | 
             
            loaded_model = whisper.load_model("medium")
         | 
| 15 | 
             
            current_size = 'medium'
         | 
| 16 | 
             
            def inference(link):
         |