Wauplin HF staff commited on
Commit
b9e2a15
1 Parent(s): 74be950

Update functions.py

Browse files
Files changed (1) hide show
  1. functions.py +3 -3
functions.py CHANGED
@@ -33,7 +33,7 @@ def get_details_url(repo):
33
 
34
 
35
  def get_query_url(repo):
36
- return f"https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query={repo}"
37
 
38
 
39
  def get_task_summary(results):
@@ -118,7 +118,7 @@ def get_eval_results(repo):
118
  md_writer.value_matrix = [["Avg.", results['Average ⬆️']]] + [[v["dataset_name"], v["metric_value"]] for v in task_summary.values()]
119
 
120
  text = f"""
121
- # [Open LLM Leaderboard Evaluation Results](https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard)
122
  Detailed results can be found [here]({get_details_url(repo)})
123
 
124
  {md_writer.dumps()}
@@ -130,7 +130,7 @@ def get_edited_yaml_readme(repo, token: str | None):
130
  card = ModelCard.load(repo, token=token)
131
  results = search(df, repo)
132
 
133
- common = {"task_type": 'text-generation', "task_name": 'Text Generation', "source_name": "Open LLM Leaderboard", "source_url": f"https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard?query={repo}"}
134
 
135
  tasks_results = get_task_summary(results)
136
 
 
33
 
34
 
35
  def get_query_url(repo):
36
+ return f"https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query={repo}"
37
 
38
 
39
  def get_task_summary(results):
 
118
  md_writer.value_matrix = [["Avg.", results['Average ⬆️']]] + [[v["dataset_name"], v["metric_value"]] for v in task_summary.values()]
119
 
120
  text = f"""
121
+ # [Open LLM Leaderboard Evaluation Results](https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard)
122
  Detailed results can be found [here]({get_details_url(repo)})
123
 
124
  {md_writer.dumps()}
 
130
  card = ModelCard.load(repo, token=token)
131
  results = search(df, repo)
132
 
133
+ common = {"task_type": 'text-generation', "task_name": 'Text Generation', "source_name": "Open LLM Leaderboard", "source_url": f"https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query={repo}"}
134
 
135
  tasks_results = get_task_summary(results)
136