Update app.py
Browse files
app.py
CHANGED
|
@@ -25,6 +25,7 @@ def get_user_models(hf_username, task):
|
|
| 25 |
List the user's models for a given task
|
| 26 |
:param hf_username: User HF username
|
| 27 |
"""
|
|
|
|
| 28 |
models = api.list_models(author=hf_username, filter=[task])
|
| 29 |
user_model_ids = [x.modelId for x in models]
|
| 30 |
|
|
@@ -136,7 +137,7 @@ def parse_metrics(model, task):
|
|
| 136 |
|
| 137 |
|
| 138 |
def certification(hf_username):
|
| 139 |
-
print(f"\nAll Models: {get_user_models(hf_username)}\n")
|
| 140 |
results_certification = [
|
| 141 |
{
|
| 142 |
"unit": "Unit 4: Audio Classification",
|
|
|
|
| 25 |
List the user's models for a given task
|
| 26 |
:param hf_username: User HF username
|
| 27 |
"""
|
| 28 |
+
print("\nAAAAA:\n", api.list_models(author=hf_username))
|
| 29 |
models = api.list_models(author=hf_username, filter=[task])
|
| 30 |
user_model_ids = [x.modelId for x in models]
|
| 31 |
|
|
|
|
| 137 |
|
| 138 |
|
| 139 |
def certification(hf_username):
|
| 140 |
+
# print(f"\nAll Models: {get_user_models(hf_username)}\n")
|
| 141 |
results_certification = [
|
| 142 |
{
|
| 143 |
"unit": "Unit 4: Audio Classification",
|