From 348474b33b050fc166ca4d0a76ef1fe58a8afc9d Mon Sep 17 00:00:00 2001 From: Minh141120 Date: Thu, 23 Jan 2025 19:02:38 +0700 Subject: [PATCH] chore: fix license generator --- .github/workflows/convert-model-all-quant.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/convert-model-all-quant.yml b/.github/workflows/convert-model-all-quant.yml index 74f141f..8cb958f 100644 --- a/.github/workflows/convert-model-all-quant.yml +++ b/.github/workflows/convert-model-all-quant.yml @@ -135,7 +135,7 @@ jobs: model_dir = f"/mnt/models/{model_name}/hf" for filename in os.listdir(model_dir): if filename.startswith('LICENSE'): - license_url = f"https://huggingface.co/{target_model_id}/{model_name}/blob/main/{filename}" + license_url = f"https://huggingface.co/{source_model_id}/blob/main/{filename}" licenses.append(f"[{filename}]({license_url})") license_links = " | ".join(licenses) if licenses else "[License](#)"