T145 commited on
Commit
77ab023
Β·
1 Parent(s): 79af1ab

Fixed quoting

Browse files
Files changed (1) hide show
  1. 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.replace("/", "%2F")}",
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)