oscarfu0501 commited on
Commit
5725e4c
1 Parent(s): cb80938

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +3 -3
handler.py CHANGED
@@ -8,10 +8,10 @@ import os
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
 
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