shalanova commited on
Commit
6ccc59c
·
verified ·
1 Parent(s): f20b872

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -0
app.py CHANGED
@@ -203,6 +203,16 @@ def certification(hf_username):
203
  unit["passed_"] = True
204
  unit["passed"] = pass_emoji(unit["passed_"])
205
  except: print("Either no relevant models found, or no metrics in the model card for automatic speech recognition")
 
 
 
 
 
 
 
 
 
 
206
  case "demo":
207
  try:
208
  u7_usernames = hf_hub_download(USERNAMES_DATASET_ID, repo_type = "dataset", filename="usernames.csv", token=HF_TOKEN)
 
203
  unit["passed_"] = True
204
  unit["passed"] = pass_emoji(unit["passed_"])
205
  except: print("Either no relevant models found, or no metrics in the model card for automatic speech recognition")
206
+ case "text-to-audio":
207
+ try:
208
+ user_tts_models = get_user_models(hf_username, task = "text-to-audio")
209
+ print(f"\nTTA {user_tts_models}\n")
210
+ if user_tts_models:
211
+ unit["best_result"] = 0
212
+ unit["best_model_id"] = user_tts_models[0]
213
+ unit["passed_"] = True
214
+ unit["passed"] = pass_emoji(unit["passed_"])
215
+ except: print("Either no relevant models found, or no metrics in the model card for automatic speech recognition")
216
  case "demo":
217
  try:
218
  u7_usernames = hf_hub_download(USERNAMES_DATASET_ID, repo_type = "dataset", filename="usernames.csv", token=HF_TOKEN)