Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +0 -6
Dockerfile
CHANGED
|
@@ -149,12 +149,6 @@ 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 |
-
client = get_dataset_client()
|
| 153 |
-
try:
|
| 154 |
-
client.put_file(INIT_FLAG, b'')
|
| 155 |
-
print(f"[OK] Uploaded {INIT_FLAG} to dataset")
|
| 156 |
-
except Exception as e:
|
| 157 |
-
print(f"[Warn] Failed to upload {INIT_FLAG}: {e}")
|
| 158 |
return
|
| 159 |
|
| 160 |
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 |
return
|
| 153 |
|
| 154 |
if force_restore:
|