Spaces:
Runtime error
Runtime error
johnbradley
commited on
Commit
β’
938a85a
1
Parent(s):
bacb058
Fix tmpfile removal
Browse files
app.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
import
|
2 |
import tempfile
|
3 |
import json
|
4 |
import numpy as np
|
@@ -30,7 +30,7 @@ def run_inference(markdown, input_img):
|
|
30 |
json_metadata = json.dumps(result)
|
31 |
|
32 |
# Cleanup
|
33 |
-
os.remove(
|
34 |
|
35 |
return visfname, maskfname, json_metadata
|
36 |
|
|
|
1 |
+
import os
|
2 |
import tempfile
|
3 |
import json
|
4 |
import numpy as np
|
|
|
30 |
json_metadata = json.dumps(result)
|
31 |
|
32 |
# Cleanup
|
33 |
+
os.remove(tmpfile)
|
34 |
|
35 |
return visfname, maskfname, json_metadata
|
36 |
|