Update app.py
Browse files
app.py
CHANGED
|
@@ -35,6 +35,8 @@ def get_user_models(hf_username, task):
|
|
| 35 |
dataset = 'PolyAI/minds14'
|
| 36 |
case "text-to-speech":
|
| 37 |
dataset = ""
|
|
|
|
|
|
|
| 38 |
case _:
|
| 39 |
print("Unsupported task")
|
| 40 |
|
|
@@ -134,6 +136,7 @@ def parse_metrics(model, task):
|
|
| 134 |
|
| 135 |
|
| 136 |
def certification(hf_username):
|
|
|
|
| 137 |
results_certification = [
|
| 138 |
{
|
| 139 |
"unit": "Unit 4: Audio Classification",
|
|
@@ -159,6 +162,14 @@ def certification(hf_username):
|
|
| 159 |
"best_model_id": "",
|
| 160 |
"passed_": False
|
| 161 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 162 |
{
|
| 163 |
"unit": "Unit 7: Audio applications",
|
| 164 |
"task": "demo",
|
|
|
|
| 35 |
dataset = 'PolyAI/minds14'
|
| 36 |
case "text-to-speech":
|
| 37 |
dataset = ""
|
| 38 |
+
case "text-to-audio":
|
| 39 |
+
dataset = ""
|
| 40 |
case _:
|
| 41 |
print("Unsupported task")
|
| 42 |
|
|
|
|
| 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",
|
|
|
|
| 162 |
"best_model_id": "",
|
| 163 |
"passed_": False
|
| 164 |
},
|
| 165 |
+
{
|
| 166 |
+
"unit": "Unit 6: Text-to-Audio",
|
| 167 |
+
"task": "text-to-audio",
|
| 168 |
+
"baseline_metric": 0,
|
| 169 |
+
"best_result": 0,
|
| 170 |
+
"best_model_id": "",
|
| 171 |
+
"passed_": False
|
| 172 |
+
},
|
| 173 |
{
|
| 174 |
"unit": "Unit 7: Audio applications",
|
| 175 |
"task": "demo",
|