mgyigit commited on
Commit
4aefc3e
·
verified ·
1 Parent(s): 0cf793e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -14,7 +14,7 @@ sys.path.append('./src')
14
  sys.path.append('.')
15
 
16
  from huggingface_hub import HfApi
17
- api = HfApi(token=os.getenv("api-key")) #load api-key secret
18
 
19
  from src.about import *
20
  from src.saving_utils import *
@@ -63,6 +63,7 @@ def add_new_eval(
63
  return 0
64
 
65
  def refresh_data():
 
66
  api.restart_space(repo_id="HUBioDataLab/PROBE", token=os.getenv("api-key"))
67
  benchmark_types = ["similarity", "function", "family", "affinity", "leaderboard"]
68
 
 
14
  sys.path.append('.')
15
 
16
  from huggingface_hub import HfApi
17
+ api = HfApi() #load api-key secret
18
 
19
  from src.about import *
20
  from src.saving_utils import *
 
63
  return 0
64
 
65
  def refresh_data():
66
+ print(api.whoami(token=os.getenv("api-key")))
67
  api.restart_space(repo_id="HUBioDataLab/PROBE", token=os.getenv("api-key"))
68
  benchmark_types = ["similarity", "function", "family", "affinity", "leaderboard"]
69