johnbradley commited on
Commit
938a85a
β€’
1 Parent(s): bacb058

Fix tmpfile removal

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,4 +1,4 @@
1
- import os
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(tempfile)
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