Spaces:
Runtime error
Runtime error
debug
Browse files
app.py
CHANGED
@@ -12,6 +12,7 @@ def run(input_image):
|
|
12 |
cmd = 'bin/detect-image ' + input_image + ' ' + output_image_filename
|
13 |
p = Popen(cmd, shell=True, stdin=PIPE, stdout=PIPE, stderr=STDOUT, close_fds=True)
|
14 |
j = json.loads(p.stdout.read().decode("utf-8"))
|
|
|
15 |
i = Image.open(output_image_filename)
|
16 |
|
17 |
return i, j
|
|
|
12 |
cmd = 'bin/detect-image ' + input_image + ' ' + output_image_filename
|
13 |
p = Popen(cmd, shell=True, stdin=PIPE, stdout=PIPE, stderr=STDOUT, close_fds=True)
|
14 |
j = json.loads(p.stdout.read().decode("utf-8"))
|
15 |
+
print(j)
|
16 |
i = Image.open(output_image_filename)
|
17 |
|
18 |
return i, j
|