Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,9 @@ def infer(im):
|
|
11 |
'model_type': (None, 'detection'),
|
12 |
'media_type': (None, 'photo'),
|
13 |
}
|
14 |
-
|
|
|
|
|
15 |
img = im.convert('RGB')
|
16 |
|
17 |
words = []
|
|
|
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')
|
18 |
|
19 |
words = []
|