Spaces:
Running
Running
Upload scripts/sync_hf.py with huggingface_hub
Browse files- scripts/sync_hf.py +3 -3
scripts/sync_hf.py
CHANGED
|
@@ -382,7 +382,7 @@ class OpenClawFullSync:
|
|
| 382 |
with open(config_path, "w") as f:
|
| 383 |
json.dump({
|
| 384 |
"gateway": {
|
| 385 |
-
"mode": "local", "bind": "lan", "port":
|
| 386 |
"trustedProxies": ["0.0.0.0/0"],
|
| 387 |
"controlUi": {
|
| 388 |
"allowInsecureAuth": True,
|
|
@@ -440,7 +440,7 @@ class OpenClawFullSync:
|
|
| 440 |
data["gateway"] = {
|
| 441 |
"mode": "local",
|
| 442 |
"bind": "lan",
|
| 443 |
-
"port":
|
| 444 |
"auth": {"token": GATEWAY_TOKEN},
|
| 445 |
"trustedProxies": ["0.0.0.0/0"],
|
| 446 |
"controlUi": {
|
|
@@ -449,7 +449,7 @@ class OpenClawFullSync:
|
|
| 449 |
"allowedOrigins": allowed_origins
|
| 450 |
}
|
| 451 |
}
|
| 452 |
-
print(f"[SYNC] Set gateway config (port=
|
| 453 |
|
| 454 |
# Ensure agents defaults
|
| 455 |
data.setdefault("agents", {}).setdefault("defaults", {}).setdefault("model", {})
|
|
|
|
| 382 |
with open(config_path, "w") as f:
|
| 383 |
json.dump({
|
| 384 |
"gateway": {
|
| 385 |
+
"mode": "local", "bind": "lan", "port": 7860,
|
| 386 |
"trustedProxies": ["0.0.0.0/0"],
|
| 387 |
"controlUi": {
|
| 388 |
"allowInsecureAuth": True,
|
|
|
|
| 440 |
data["gateway"] = {
|
| 441 |
"mode": "local",
|
| 442 |
"bind": "lan",
|
| 443 |
+
"port": 7860,
|
| 444 |
"auth": {"token": GATEWAY_TOKEN},
|
| 445 |
"trustedProxies": ["0.0.0.0/0"],
|
| 446 |
"controlUi": {
|
|
|
|
| 449 |
"allowedOrigins": allowed_origins
|
| 450 |
}
|
| 451 |
}
|
| 452 |
+
print(f"[SYNC] Set gateway config (port=7860, auth=token, origins={len(allowed_origins)})")
|
| 453 |
|
| 454 |
# Ensure agents defaults
|
| 455 |
data.setdefault("agents", {}).setdefault("defaults", {}).setdefault("model", {})
|