Spaces:
Build error
Build error
Commit
·
ba99d85
1
Parent(s):
78ec837
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,11 +1,11 @@
|
|
| 1 |
|
| 2 |
-
__all__ = ['block', '
|
| 3 |
|
| 4 |
import gradio as gr
|
| 5 |
import pandas as pd
|
| 6 |
-
from huggingface_hub import HfApi
|
| 7 |
|
| 8 |
-
def
|
| 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 |
-
|
| 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 |
)
|