We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fddb33e commit b520c2fCopy full SHA for b520c2f
1 file changed
restage.py
@@ -0,0 +1,23 @@
1
+"""Re-upload files from Modal staging volume to HF staging."""
2
+
3
+from modal_app.local_area import app, validate_staging, upload_to_staging
4
5
+branch = "fix-would-file-blend-and-entity-weights"
6
+version = "1.73.0"
7
8
9
+@app.local_entrypoint()
10
+def main():
11
+ print(f"Validating {version} on Modal volume...")
12
+ manifest = validate_staging.remote(branch=branch, version=version)
13
14
+ print(f"\nFound {len(manifest['files'])} files:")
15
+ print(f" States: {manifest['totals']['states']}")
16
+ print(f" Districts: {manifest['totals']['districts']}")
17
+ print(f" Cities: {manifest['totals']['cities']}")
18
19
+ print(f"\nUploading to HF staging...")
20
+ result = upload_to_staging.remote(
21
+ branch=branch, version=version, manifest=manifest
22
+ )
23
+ print(result)
0 commit comments