mirari commited on
Commit
612bd6f
·
verified ·
1 Parent(s): 44e92a0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -11,10 +11,7 @@ current_size = 'medium'
11
 
12
  def inference(link):
13
 
14
- request_object = urlopen(link)
15
- method = ("POST", "GET")
16
- request_object.get_method = lambda: method[0] #If method is set to POST
17
- link = opener.open(req, data) #If method is set to POST
18
 
19
 
20
  yt = YouTube(link)
 
11
 
12
  def inference(link):
13
 
14
+ link = urlopen(link).read()
 
 
 
15
 
16
 
17
  yt = YouTube(link)