Spaces:
Runtime error
Runtime error
recompile
Browse files
app.py
CHANGED
@@ -10,9 +10,11 @@ def run(input_image):
|
|
10 |
output_image_filename = tmpdir + "/result.jpg"
|
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 |
i = Image.open(output_image_filename)
|
14 |
|
15 |
-
return
|
16 |
|
17 |
gr.Interface(
|
18 |
fn=run,
|
|
|
10 |
output_image_filename = tmpdir + "/result.jpg"
|
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 |
i = Image.open(output_image_filename)
|
16 |
|
17 |
+
return i, j
|
18 |
|
19 |
gr.Interface(
|
20 |
fn=run,
|