Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -13,6 +13,10 @@ import sys
|
|
13 |
sys.path.append('./src')
|
14 |
sys.path.append('.')
|
15 |
|
|
|
|
|
|
|
|
|
16 |
from src.about import *
|
17 |
from src.saving_utils import *
|
18 |
from src.vis_utils import *
|
@@ -60,6 +64,7 @@ def add_new_eval(
|
|
60 |
return 0
|
61 |
|
62 |
def refresh_data():
|
|
|
63 |
benchmark_types = ["similarity", "function", "family", "affinity", "leaderboard"]
|
64 |
|
65 |
for benchmark_type in benchmark_types:
|
|
|
13 |
sys.path.append('./src')
|
14 |
sys.path.append('.')
|
15 |
|
16 |
+
from huggingface_hub import HfApi
|
17 |
+
repo_id = "HUBioDataLab/PROBE"
|
18 |
+
api = HfApi()
|
19 |
+
|
20 |
from src.about import *
|
21 |
from src.saving_utils import *
|
22 |
from src.vis_utils import *
|
|
|
64 |
return 0
|
65 |
|
66 |
def refresh_data():
|
67 |
+
api.restart_space(repo_id=repo_id)
|
68 |
benchmark_types = ["similarity", "function", "family", "affinity", "leaderboard"]
|
69 |
|
70 |
for benchmark_type in benchmark_types:
|