Spaces:
Running
Running
Upload folder using huggingface_hub
Browse files- 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"
|
| 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:
|