Spaces:
Runtime error
Runtime error
johnbradley
commited on
Commit
β’
21fba64
1
Parent(s):
f787ed5
Fix syntax error
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ def run_inference(input_img):
|
|
16 |
# input_mg: NumPy array with the shape (width, height, 3)
|
17 |
|
18 |
# Save input_mg as a temporary file
|
19 |
-
tmpfile = create_temp_file_path(prefix="input_", suffix
|
20 |
im = Image.fromarray(input_img)
|
21 |
im.save(tmpfile)
|
22 |
|
|
|
16 |
# input_mg: NumPy array with the shape (width, height, 3)
|
17 |
|
18 |
# Save input_mg as a temporary file
|
19 |
+
tmpfile = create_temp_file_path(prefix="input_", suffix=".png")
|
20 |
im = Image.fromarray(input_img)
|
21 |
im.save(tmpfile)
|
22 |
|