davanstrien HF Staff commited on
Commit
6e465d7
·
1 Parent(s): 31639f7
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -274,14 +274,14 @@ def _basic_check(hub_id):
274
  score_summary = (
275
  f"Your model's metadata score is {round(score*100)}% based on suggested metadata for {task}"
276
  )
277
- recommendations = None
278
  if to_fix:
279
  recommendations = (
280
  "Here are some suggestions to improve your model's metadata for"
281
  f" {task}."
282
  )
283
  for v in to_fix.values():
284
- recommendations += f"\n- {v}"
285
  return score_summary + recommendations if recommendations else score_summary
286
  except Exception as e:
287
  print(e)
 
274
  score_summary = (
275
  f"Your model's metadata score is {round(score*100)}% based on suggested metadata for {task}"
276
  )
277
+ recommendations = []
278
  if to_fix:
279
  recommendations = (
280
  "Here are some suggestions to improve your model's metadata for"
281
  f" {task}."
282
  )
283
  for v in to_fix.values():
284
+ recommendations.append(v)
285
  return score_summary + recommendations if recommendations else score_summary
286
  except Exception as e:
287
  print(e)