Spaces:
Running
Running
Update miniapp_leaderboard.py
Browse files- miniapp_leaderboard.py +8 -1
miniapp_leaderboard.py
CHANGED
|
@@ -12,6 +12,10 @@ import pandas as pd
|
|
| 12 |
import requests
|
| 13 |
from huggingface_hub import HfApi, hf_hub_download
|
| 14 |
from huggingface_hub.errors import RepositoryNotFoundError
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
|
| 16 |
APP_NAME = "miniapp"
|
| 17 |
|
|
@@ -328,7 +332,8 @@ def submit(
|
|
| 328 |
sort_dir: str,
|
| 329 |
profile: gr.OAuthProfile | None,
|
| 330 |
):
|
| 331 |
-
|
|
|
|
| 332 |
|
| 333 |
if IN_SPACES and (profile is None or not getattr(profile, "username", None)):
|
| 334 |
return "You must log in to submit.", render_lb(search_text, sort_col, sort_dir)
|
|
@@ -480,6 +485,8 @@ def show_owner_panel(profile: gr.OAuthProfile | None):
|
|
| 480 |
|
| 481 |
|
| 482 |
# ----------------- UI -----------------
|
|
|
|
|
|
|
| 483 |
CSS = r"""
|
| 484 |
.gradio-container { max-width: 100% !important; }
|
| 485 |
#page { padding: 16px; }
|
|
|
|
| 12 |
import requests
|
| 13 |
from huggingface_hub import HfApi, hf_hub_download
|
| 14 |
from huggingface_hub.errors import RepositoryNotFoundError
|
| 15 |
+
import logging
|
| 16 |
+
logging.basicConfig(level=logging.INFO)
|
| 17 |
+
logging.info("APP BOOT: miniapp_leaderboard.py NEW CODE LOADED")
|
| 18 |
+
|
| 19 |
|
| 20 |
APP_NAME = "miniapp"
|
| 21 |
|
|
|
|
| 332 |
sort_dir: str,
|
| 333 |
profile: gr.OAuthProfile | None,
|
| 334 |
):
|
| 335 |
+
logging.info("SUBMIT CALLED: no-daily-limit version")
|
| 336 |
+
|
| 337 |
|
| 338 |
if IN_SPACES and (profile is None or not getattr(profile, "username", None)):
|
| 339 |
return "You must log in to submit.", render_lb(search_text, sort_col, sort_dir)
|
|
|
|
| 485 |
|
| 486 |
|
| 487 |
# ----------------- UI -----------------
|
| 488 |
+
gr.Markdown("**APP VERSION:** 2026-02-28-no-daily-limit")
|
| 489 |
+
|
| 490 |
CSS = r"""
|
| 491 |
.gradio-container { max-width: 100% !important; }
|
| 492 |
#page { padding: 16px; }
|