Upload pipeline.py with huggingface_hub
Browse files190 unmodified lines191192193194195196190 unmodified linesshutil.copy2(srcp, dst / name)copied.append(name)print(f"[pipeline] finalisasi ke out/: {', '.join(copied)}")if args.push:from huggingface_hub import HfApi190 unmodified lines191192193194195196197198199200201202203204205206207208209190 unmodified linesshutil.copy2(srcp, dst / name)copied.append(name)print(f"[pipeline] finalisasi ke out/: {', '.join(copied)}")info = {"tag": args.tag,"timestamp": datetime.datetime.now().isoformat(timespec="seconds"),"git": git_short(),"best_val": stats.get("best_val"),"nats_per_char_best": stats.get("nats_per_char_best"),"kamus_ratio": stats.get("kamus_ratio"),"sources": sources,}(dst / "run_info.json").write_text(json.dumps(info, ensure_ascii=False, indent=2), encoding="utf-8")print("[pipeline] silsilah -> out/run_info.json")if args.push:from huggingface_hub import HfApi
pipeline.py+13