Spaces:
Runtime error
Runtime error
recompile
Browse files
app.py
CHANGED
|
@@ -12,6 +12,10 @@ def run(input_image):
|
|
| 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
|
|
|
|
| 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
|