Spaces:
Running
Running
update
Browse files
app.py
CHANGED
|
@@ -12,6 +12,9 @@ from src.compute import compute_scores
|
|
| 12 |
|
| 13 |
global data_component, filter_component
|
| 14 |
|
|
|
|
|
|
|
|
|
|
| 15 |
def validate_model_size(s):
|
| 16 |
pattern = r'^\d+B$|^-$'
|
| 17 |
if re.match(pattern, s):
|
|
|
|
| 12 |
|
| 13 |
global data_component, filter_component
|
| 14 |
|
| 15 |
+
from huggingface_hub import Repository, HfApi
|
| 16 |
+
api = HfApi(token=os.getenv('HF_TOKEN'))
|
| 17 |
+
|
| 18 |
def validate_model_size(s):
|
| 19 |
pattern = r'^\d+B$|^-$'
|
| 20 |
if re.match(pattern, s):
|