osanseviero commited on
Commit
ba99d85
·
1 Parent(s): 78ec837

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -1,11 +1,11 @@
1
 
2
- __all__ = ['block', 'make_clickable_model', 'make_clickable_user', 'get_submissions']
3
 
4
  import gradio as gr
5
  import pandas as pd
6
- from huggingface_hub import HfApi, repocard
7
 
8
- def make_clickable_space(name, repo_type):
9
  if repo_type == "spaces":
10
  link = "https://huggingface.co/" + "spaces/" + name
11
  elif repo_type == "models":
@@ -32,7 +32,7 @@ def get_submissions(repo_type):
32
  for submission in submissions:
33
  leaderboard.append(
34
  (
35
- make_clickable_model(submission.id),
36
  submission.likes,
37
  )
38
  )
 
1
 
2
+ __all__ = ['block', 'make_clickable_repo', 'get_submissions']
3
 
4
  import gradio as gr
5
  import pandas as pd
6
+ from huggingface_hub import HfApi
7
 
8
+ def make_clickable_repo(name, repo_type):
9
  if repo_type == "spaces":
10
  link = "https://huggingface.co/" + "spaces/" + name
11
  elif repo_type == "models":
 
32
  for submission in submissions:
33
  leaderboard.append(
34
  (
35
+ make_clickable_repo(submission.id),
36
  submission.likes,
37
  )
38
  )