Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -11,10 +11,7 @@ current_size = 'medium'
|
|
11 |
|
12 |
def inference(link):
|
13 |
|
14 |
-
|
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)
|