oscarfu0501
commited on
Commit
•
f64f1c0
1
Parent(s):
a9aa727
Update handler.py
Browse files- handler.py +4 -0
handler.py
CHANGED
@@ -8,6 +8,10 @@ import os
|
|
8 |
import gdown
|
9 |
from PIL import Image
|
10 |
import io
|
|
|
|
|
|
|
|
|
11 |
|
12 |
class EndpointHandler:
|
13 |
def __init__(self, path='.'): # pass api key to model
|
|
|
8 |
import gdown
|
9 |
from PIL import Image
|
10 |
import io
|
11 |
+
import http.client
|
12 |
+
|
13 |
+
http.client.HTTPConnection._http_vsn = 10
|
14 |
+
http.client.HTTPConnection._http_vsn_str = 'HTTP/1.0'
|
15 |
|
16 |
class EndpointHandler:
|
17 |
def __init__(self, path='.'): # pass api key to model
|