ThomasSimonini HF staff commited on
Commit
9d02dd8
·
1 Parent(s): f650c25

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -10
app.py CHANGED
@@ -206,16 +206,7 @@ def certification(hf_username, first_name, last_name):
206
  },
207
  {
208
  "unit": "Unit 6",
209
- "env": "AntBulletEnv-v0",
210
- "library": "stable-baselines3",
211
- "min_result": 650,
212
- "best_result": 0,
213
- "best_model_id": "",
214
- "passed_": False
215
- },
216
- {
217
- "unit": "Unit 6",
218
- "env": "PandaReachDense-v2",
219
  "library": "stable-baselines3",
220
  "min_result": -3.5,
221
  "best_result": 0,
@@ -251,6 +242,12 @@ def certification(hf_username, first_name, last_name):
251
  },
252
  ]
253
  for unit in results_certification:
 
 
 
 
 
 
254
  if unit["unit"] != "Unit 8 PII":
255
  # Get user model
256
  user_models = get_user_models(hf_username, unit['env'], unit['library'])
 
206
  },
207
  {
208
  "unit": "Unit 6",
209
+ "env": "PandaReachDense",
 
 
 
 
 
 
 
 
 
210
  "library": "stable-baselines3",
211
  "min_result": -3.5,
212
  "best_result": 0,
 
242
  },
243
  ]
244
  for unit in results_certification:
245
+ if unit["unit"] != "Unit 6":
246
+ # Since Unit 6 can use PandaReachDense-v2 or v3
247
+ user_models = get_user_models(hf_username, unit["PandaReachDense-v3"], unit["library"])
248
+ if user_models == "":
249
+ print("Empty")
250
+ user_models = get_user_models(hf_username, unit["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'])