crazyai-kby
commited on
Commit
•
885ca07
1
Parent(s):
49716b1
Debug
Browse files
app.py
CHANGED
@@ -8,6 +8,12 @@ import configparser
|
|
8 |
|
9 |
|
10 |
def run(file):
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
in_image = cv2.imread(file)
|
12 |
|
13 |
encode_img = cv2.imencode('.jpg', in_image)[1].tostring()
|
|
|
8 |
|
9 |
|
10 |
def run(file):
|
11 |
+
backend_url = os.getenv('BACKEND_URL')
|
12 |
+
url = f'{backend_url}/raster-to-vector-base64'
|
13 |
+
out_json = {'json': url}
|
14 |
+
out_img = in_image
|
15 |
+
|
16 |
+
return out_img, out_json
|
17 |
in_image = cv2.imread(file)
|
18 |
|
19 |
encode_img = cv2.imencode('.jpg', in_image)[1].tostring()
|