Fixed quoting
Browse files- functions.py +3 -1
functions.py
CHANGED
@@ -1,3 +1,5 @@
|
|
|
|
|
|
1 |
import gradio as gr
|
2 |
import numpy as np
|
3 |
import urllib3
|
@@ -225,7 +227,7 @@ def get_edited_yaml_readme(repo: str, results: dict, token: str | None):
|
|
225 |
"task_type": "text-generation",
|
226 |
"task_name": "Text Generation",
|
227 |
"source_name": "Open LLM Leaderboard",
|
228 |
-
"source_url": f"https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard#/?search={repo
|
229 |
}
|
230 |
|
231 |
tasks_results = get_task_summary(results)
|
|
|
1 |
+
from urllib.parse import quote
|
2 |
+
|
3 |
import gradio as gr
|
4 |
import numpy as np
|
5 |
import urllib3
|
|
|
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={quote(repo, safe="")}",
|
231 |
}
|
232 |
|
233 |
tasks_results = get_task_summary(results)
|