tokeron commited on
Commit
1dccfdb
·
verified ·
1 Parent(s): 5355975

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. sam_gui.py +2 -2
sam_gui.py CHANGED
@@ -832,8 +832,8 @@ def create_interface():
832
  download_path = f"/tmp/mask_{base_name}_{timestamp}.pt"
833
  torch.save(torch.from_numpy((CURRENT_MASK > 0).astype(np.float32)), download_path)
834
 
835
- # Make download visible and return file
836
- download_status = f"✅ {local_save_status}\n📥 Download ready: {download_format} format"
837
  return download_status, gr.File(value=download_path, visible=True)
838
 
839
  except Exception as e:
 
832
  download_path = f"/tmp/mask_{base_name}_{timestamp}.pt"
833
  torch.save(torch.from_numpy((CURRENT_MASK > 0).astype(np.float32)), download_path)
834
 
835
+ # Make download visible and return file
836
+ download_status = f"📥 Download ready: {download_format} format"
837
  return download_status, gr.File(value=download_path, visible=True)
838
 
839
  except Exception as e: