Fix quoting again
Browse files- functions.py +2 -1
functions.py
CHANGED
@@ -222,12 +222,13 @@ Summarized results can be found [here]({get_contents_url(repo)})!
|
|
222 |
|
223 |
def get_edited_yaml_readme(repo: str, results: dict, token: str | None):
|
224 |
card = ModelCard.load(repo, token=token)
|
|
|
225 |
|
226 |
common = {
|
227 |
"task_type": "text-generation",
|
228 |
"task_name": "Text Generation",
|
229 |
"source_name": "Open LLM Leaderboard",
|
230 |
-
"source_url": f"https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard#/?search={
|
231 |
}
|
232 |
|
233 |
tasks_results = get_task_summary(results)
|
|
|
222 |
|
223 |
def get_edited_yaml_readme(repo: str, results: dict, token: str | None):
|
224 |
card = ModelCard.load(repo, token=token)
|
225 |
+
param = quote(repo, safe="")
|
226 |
|
227 |
common = {
|
228 |
"task_type": "text-generation",
|
229 |
"task_name": "Text Generation",
|
230 |
"source_name": "Open LLM Leaderboard",
|
231 |
+
"source_url": f"https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard#/?search={param}",
|
232 |
}
|
233 |
|
234 |
tasks_results = get_task_summary(results)
|