tomofi commited on
Commit
4c247ff
1 Parent(s): 4a935de

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -11,7 +11,10 @@ def infer(im):
11
  'model_type': (None, 'detection'),
12
  'media_type': (None, 'photo'),
13
  }
14
- r = requests.post(url, files=files)
 
 
 
15
  res = r.json()
16
  print(r, res)
17
  img = im.convert('RGB')
 
11
  'model_type': (None, 'detection'),
12
  'media_type': (None, 'photo'),
13
  }
14
+ headers = {
15
+ 'referer': 'https://thehive.ai/'
16
+ }
17
+ r = requests.post(url, headers=headers, files=files)
18
  res = r.json()
19
  print(r, res)
20
  img = im.convert('RGB')