OpenCircuit commited on
Commit ·
6f9f012
1
Parent(s): 041d85f
Fix push_to_hub: use upload_folder instead (create_model_card kwarg compat)
Browse files
app.py
CHANGED
|
@@ -143,7 +143,7 @@ def run_training():
|
|
| 143 |
api.create_repo("OpenCircuit/bf-router", exist_ok=True)
|
| 144 |
except Exception:
|
| 145 |
pass
|
| 146 |
-
|
| 147 |
log("Model pushed to Hub!")
|
| 148 |
|
| 149 |
status["state"] = "complete"
|
|
|
|
| 143 |
api.create_repo("OpenCircuit/bf-router", exist_ok=True)
|
| 144 |
except Exception:
|
| 145 |
pass
|
| 146 |
+
api.upload_folder(folder_path=out_dir, repo_id="OpenCircuit/bf-router", repo_type="model", token=hf_token, commit_message="Upload BF-Router v0.5 QLoRA adapter (Qwen3-4B)")
|
| 147 |
log("Model pushed to Hub!")
|
| 148 |
|
| 149 |
status["state"] = "complete"
|