ThomasSimonini HF staff commited on
Commit
cc2cc46
·
1 Parent(s): a8146aa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -248,10 +248,11 @@ def certification(hf_username, first_name, last_name):
248
  if user_models == "":
249
  print("Empty")
250
  user_models = get_user_models(hf_username, "PandaReachDense-v2", unit["library"])
251
- if unit["unit"] != "Unit 8 PII":
252
  # Get user model
253
  user_models = get_user_models(hf_username, unit['env'], unit['library'])
254
  # For sample factory vizdoom we don't have env tag for now
 
255
  else:
256
  user_models = get_user_sf_models(hf_username, unit['env'], unit['library'])
257
 
 
248
  if user_models == "":
249
  print("Empty")
250
  user_models = get_user_models(hf_username, "PandaReachDense-v2", unit["library"])
251
+ elif unit["unit"] != "Unit 8 PII":
252
  # Get user model
253
  user_models = get_user_models(hf_username, unit['env'], unit['library'])
254
  # For sample factory vizdoom we don't have env tag for now
255
+
256
  else:
257
  user_models = get_user_sf_models(hf_username, unit['env'], unit['library'])
258