Spaces:
Running
Running
update
Browse files
app.py
CHANGED
|
@@ -13,7 +13,13 @@ from src.compute import compute_scores
|
|
| 13 |
global data_component, filter_component
|
| 14 |
|
| 15 |
from huggingface_hub import Repository, HfApi
|
| 16 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
|
| 18 |
def validate_model_size(s):
|
| 19 |
pattern = r'^\d+B$|^-$'
|
|
|
|
| 13 |
global data_component, filter_component
|
| 14 |
|
| 15 |
from huggingface_hub import Repository, HfApi
|
| 16 |
+
hf_token = os.getenv('HF_TOKEN')
|
| 17 |
+
api = HfApi(token=hf_token)
|
| 18 |
+
repo = Repository(
|
| 19 |
+
local_dir=".",
|
| 20 |
+
clone_from="https://huggingface.co/spaces/lyx97/TempCompass",
|
| 21 |
+
use_auth_token=hf_token,
|
| 22 |
+
)
|
| 23 |
|
| 24 |
def validate_model_size(s):
|
| 25 |
pattern = r'^\d+B$|^-$'
|