Spaces:
Running
Running
Update app.py
Browse files
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(
|
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 |
|