mrfakename commited on
Commit
71abf2f
1 Parent(s): ecca97f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -290,9 +290,8 @@ model_links = {
290
  def model_license(name):
291
  print(name)
292
  for k, v in AVAILABLE_MODELS.items():
293
- if v == name:
294
- print(v, k)
295
- return model_licenses[k]
296
  print('---')
297
  return 'Unknown'
298
  def get_leaderboard(reveal_prelim: bool):
 
290
  def model_license(name):
291
  print(name)
292
  for k, v in AVAILABLE_MODELS.items():
293
+ if k == name:
294
+ return model_licenses[v]
 
295
  print('---')
296
  return 'Unknown'
297
  def get_leaderboard(reveal_prelim: bool):