davanstrien HF Staff commited on
Commit
da7c78c
·
1 Parent(s): 6e465d7
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -256,12 +256,11 @@ SCORES = generate_task_scores_dict()
256
  def _basic_check(hub_id):
257
  try:
258
  data = ModelMetadata.from_hub(hub_id)
259
- task = data.pipeline_tag
260
- data_dict = asdict(data)
261
  score = 0
262
- if task:
263
  task_scores = SCORES[task]
264
  to_fix = {}
 
265
  for k, v in task_scores.items():
266
  if k.startswith("_"):
267
  continue
 
256
  def _basic_check(hub_id):
257
  try:
258
  data = ModelMetadata.from_hub(hub_id)
 
 
259
  score = 0
260
+ if task := data.pipeline_tag:
261
  task_scores = SCORES[task]
262
  to_fix = {}
263
+ data_dict = asdict(data)
264
  for k, v in task_scores.items():
265
  if k.startswith("_"):
266
  continue