Spaces:
Running
Running
fix hf tag
Browse files
engine.py
CHANGED
|
@@ -439,10 +439,10 @@ class FunctionGemmaEngine:
|
|
| 439 |
token=oauth_token
|
| 440 |
)
|
| 441 |
tags = ["functiongemma", "functiongemma-tuning-lab"]
|
| 442 |
-
if
|
| 443 |
tags = info.card_data.tags
|
| 444 |
tags.append("functiongemma-tuning-lab")
|
| 445 |
-
|
| 446 |
metadata_update(repo_id, {"tags": tags}, overwrite=True, token=oauth_token)
|
| 447 |
|
| 448 |
return f"✅ Success! Model uploaded to: {repo_url}"
|
|
|
|
| 439 |
token=oauth_token
|
| 440 |
)
|
| 441 |
tags = ["functiongemma", "functiongemma-tuning-lab"]
|
| 442 |
+
if info.card_data.tags:
|
| 443 |
tags = info.card_data.tags
|
| 444 |
tags.append("functiongemma-tuning-lab")
|
| 445 |
+
|
| 446 |
metadata_update(repo_id, {"tags": tags}, overwrite=True, token=oauth_token)
|
| 447 |
|
| 448 |
return f"✅ Success! Model uploaded to: {repo_url}"
|