Spaces:
Runtime error
Runtime error
removed link
Browse files
app.py
CHANGED
|
@@ -6,13 +6,6 @@ import re
|
|
| 6 |
import pandas as pd
|
| 7 |
from huggingface_hub import ModelCard
|
| 8 |
|
| 9 |
-
def make_clickable_model(model_name):
|
| 10 |
-
# remove user from model name
|
| 11 |
-
model_name_show = ' '.join(model_name.split('/')[1:])
|
| 12 |
-
|
| 13 |
-
link = "https://huggingface.co/" + model_name
|
| 14 |
-
return f'<a target="_blank" href="{link}">{model_name_show}</a>'
|
| 15 |
-
|
| 16 |
def pass_emoji(passed):
|
| 17 |
if passed is True:
|
| 18 |
passed = "✅"
|
|
@@ -140,7 +133,7 @@ def certification(hf_username):
|
|
| 140 |
user_models = get_user_audio_classification_models(hf_username)
|
| 141 |
best_result, best_model_id = calculate_best_acc_result(user_models)
|
| 142 |
unit["best_result"] = best_result
|
| 143 |
-
unit["best_model_id"] =
|
| 144 |
if unit["best_result"] >= unit["baseline_metric"]:
|
| 145 |
unit["passed_"] = True
|
| 146 |
unit["passed"] = pass_emoji(unit["passed_"])
|
|
|
|
| 6 |
import pandas as pd
|
| 7 |
from huggingface_hub import ModelCard
|
| 8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
def pass_emoji(passed):
|
| 10 |
if passed is True:
|
| 11 |
passed = "✅"
|
|
|
|
| 133 |
user_models = get_user_audio_classification_models(hf_username)
|
| 134 |
best_result, best_model_id = calculate_best_acc_result(user_models)
|
| 135 |
unit["best_result"] = best_result
|
| 136 |
+
unit["best_model_id"] = best_model_id
|
| 137 |
if unit["best_result"] >= unit["baseline_metric"]:
|
| 138 |
unit["passed_"] = True
|
| 139 |
unit["passed"] = pass_emoji(unit["passed_"])
|