davanstrien HF Staff commited on
Commit
2519c50
·
1 Parent(s): 4159b15
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -280,10 +280,7 @@ def _basic_check(hub_id):
280
  )
281
  for v in to_fix.values():
282
  recommendations += f"\n- {v}"
283
- if recommendations:
284
- return score + recommendations
285
- else:
286
- return score
287
  except Exception as e:
288
  print(e)
289
  return None
 
280
  )
281
  for v in to_fix.values():
282
  recommendations += f"\n- {v}"
283
+ return score_summary + recommendations if recommendations else score_summary
 
 
 
284
  except Exception as e:
285
  print(e)
286
  return None