ThomasSimonini HF staff commited on
Commit
d9c95a6
1 Parent(s): df6fc31

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -233,13 +233,13 @@ def certification(hf_username):
233
  if len(user_models) == 0:
234
  print("Empty")
235
  user_models = get_user_models(hf_username, "PandaReachDense-v2", unit["library"])
236
- if unit["unit"] != "Unit 8 PII":
237
  # Get user model
238
  user_models = get_user_models(hf_username, unit['env'], unit['library'])
239
- # For sample factory vizdoom we don't have env tag for now
240
  else:
241
  user_models = get_user_sf_models(hf_username, unit['env'], unit['library'])
242
-
243
  # Calculate the best result and get the best_model_id
244
  best_result, best_model_id = calculate_best_result(user_models)
245
 
 
233
  if len(user_models) == 0:
234
  print("Empty")
235
  user_models = get_user_models(hf_username, "PandaReachDense-v2", unit["library"])
236
+ elif unit["unit"] != "Unit 8 PII":
237
  # Get user model
238
  user_models = get_user_models(hf_username, unit['env'], unit['library'])
239
+ # For sample factory vizdoom we don't have env tag for now
240
  else:
241
  user_models = get_user_sf_models(hf_username, unit['env'], unit['library'])
242
+
243
  # Calculate the best result and get the best_model_id
244
  best_result, best_model_id = calculate_best_result(user_models)
245