Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +2 -0
Dockerfile
CHANGED
|
@@ -149,6 +149,8 @@ def restore():
|
|
| 149 |
|
| 150 |
if not flag_exists and not force_restore:
|
| 151 |
print("Restore skip: initialized.flag not found, this is first deploy or rebuild.")
|
|
|
|
|
|
|
| 152 |
return
|
| 153 |
|
| 154 |
if force_restore:
|
|
|
|
| 149 |
|
| 150 |
if not flag_exists and not force_restore:
|
| 151 |
print("Restore skip: initialized.flag not found, this is first deploy or rebuild.")
|
| 152 |
+
client.put_file(INIT_FLAG, b'')
|
| 153 |
+
print(f"[OK] Uploaded {INIT_FLAG} to dataset")
|
| 154 |
return
|
| 155 |
|
| 156 |
if force_restore:
|