Update app.py
Browse files202 unmodified lines203204205206207208202 unmodified linesunit["passed_"] = Trueunit["passed"] = pass_emoji(unit["passed_"])except: print("Either no relevant models found, or no metrics in the model card for automatic speech recognition")case "demo":try:u7_usernames = hf_hub_download(USERNAMES_DATASET_ID, repo_type = "dataset", filename="usernames.csv", token=HF_TOKEN)202 unmodified lines203204205206207208209210211212213214215216217218202 unmodified linesunit["passed_"] = Trueunit["passed"] = pass_emoji(unit["passed_"])except: print("Either no relevant models found, or no metrics in the model card for automatic speech recognition")case "text-to-audio":try:user_tts_models = get_user_models(hf_username, task = "text-to-audio")print(f"\nTTA {user_tts_models}\n")if user_tts_models:unit["best_result"] = 0unit["best_model_id"] = user_tts_models[0]unit["passed_"] = Trueunit["passed"] = pass_emoji(unit["passed_"])except: print("Either no relevant models found, or no metrics in the model card for automatic speech recognition")case "demo":try:u7_usernames = hf_hub_download(USERNAMES_DATASET_ID, repo_type = "dataset", filename="usernames.csv", token=HF_TOKEN)
app.py+10