Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,10 @@ def infer(im):
|
|
11 |
'model_type': (None, 'detection'),
|
12 |
'media_type': (None, 'photo'),
|
13 |
}
|
14 |
-
|
|
|
|
|
|
|
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')
|