Spaces:
Runtime error
Runtime error
finally
Browse files- app.py +0 -5
- bin/detect-image +0 -0
app.py
CHANGED
@@ -11,11 +11,6 @@ def run(input_image):
|
|
11 |
cmd = 'bin/detect-image ' + input_image + ' ' + output_image_filename
|
12 |
p = Popen(cmd, shell=True, stdin=PIPE, stdout=PIPE, stderr=STDOUT, close_fds=True)
|
13 |
j = p.stdout.read()
|
14 |
-
print(j)
|
15 |
-
|
16 |
-
output = check_output(["ls", tmpdir])
|
17 |
-
print(output)
|
18 |
-
|
19 |
i = Image.open(output_image_filename)
|
20 |
|
21 |
return i, j
|
|
|
11 |
cmd = 'bin/detect-image ' + input_image + ' ' + output_image_filename
|
12 |
p = Popen(cmd, shell=True, stdin=PIPE, stdout=PIPE, stderr=STDOUT, close_fds=True)
|
13 |
j = p.stdout.read()
|
|
|
|
|
|
|
|
|
|
|
14 |
i = Image.open(output_image_filename)
|
15 |
|
16 |
return i, j
|
bin/detect-image
CHANGED
Binary files a/bin/detect-image and b/bin/detect-image differ
|
|