mrfakename commited on
Commit
6a94997
1 Parent(s): 0d566dc

Update app.py

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