Wauplin HF staff commited on
Commit
a0531e3
1 Parent(s): 1a2291a

Update utils.py

Browse files
Files changed (1) hide show
  1. utils.py +1 -8
utils.py CHANGED
@@ -6,7 +6,7 @@ import jsonlines
6
  import requests
7
  import streamlit as st
8
  from evaluate import load
9
- from huggingface_hub import HfApi, ModelFilter, Repository, dataset_info, list_metrics, create_repo
10
  from tqdm import tqdm
11
 
12
  AUTOTRAIN_TASK_TO_HUB_TASK = {
@@ -122,13 +122,6 @@ def format_col_mapping(col_mapping: dict) -> dict:
122
 
123
 
124
  def commit_evaluation_log(evaluation_log, hf_access_token=None):
125
- create_repo(
126
- repo_id=f"autoevaluate/{LOGS_REPO}",
127
- repo_type="dataset",
128
- exists_ok=True,
129
- private=True,
130
- token=hf_access_token,
131
- )
132
  logs_repo_url = f"https://huggingface.co/datasets/autoevaluate/{LOGS_REPO}"
133
  logs_repo = Repository(
134
  local_dir=LOGS_REPO,
 
6
  import requests
7
  import streamlit as st
8
  from evaluate import load
9
+ from huggingface_hub import HfApi, ModelFilter, Repository, dataset_info, list_metrics
10
  from tqdm import tqdm
11
 
12
  AUTOTRAIN_TASK_TO_HUB_TASK = {
 
122
 
123
 
124
  def commit_evaluation_log(evaluation_log, hf_access_token=None):
 
 
 
 
 
 
 
125
  logs_repo_url = f"https://huggingface.co/datasets/autoevaluate/{LOGS_REPO}"
126
  logs_repo = Repository(
127
  local_dir=LOGS_REPO,