wangruisi1 commited on
Commit ·
bcd35c0
1
Parent(s): c49b672
Add model links
Browse files
app.py
CHANGED
|
@@ -48,6 +48,26 @@ ALWAYS_VISIBLE_COLS = ["Model", "Type"]
|
|
| 48 |
# ============================================================
|
| 49 |
# Static model scores data
|
| 50 |
# ============================================================
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 51 |
MODELS_DATA = [
|
| 52 |
{
|
| 53 |
"Model": "Human",
|
|
@@ -148,6 +168,8 @@ def build_full_dataframe():
|
|
| 148 |
# Round numeric columns to 3 decimal places for clean display
|
| 149 |
numeric_cols = df.select_dtypes(include="number").columns
|
| 150 |
df[numeric_cols] = df[numeric_cols].round(3)
|
|
|
|
|
|
|
| 151 |
return df
|
| 152 |
|
| 153 |
|
|
@@ -189,6 +211,7 @@ with demo:
|
|
| 189 |
value=get_filtered_df(DEFAULT_GROUPS),
|
| 190 |
interactive=False,
|
| 191 |
elem_id="leaderboard-table",
|
|
|
|
| 192 |
)
|
| 193 |
|
| 194 |
column_selector.change(
|
|
|
|
| 48 |
# ============================================================
|
| 49 |
# Static model scores data
|
| 50 |
# ============================================================
|
| 51 |
+
|
| 52 |
+
# Model links mapping
|
| 53 |
+
MODEL_LINKS = {
|
| 54 |
+
"VBVR-Wan2.2": "https://huggingface.co/Video-Reason/VBVR-Wan2.2",
|
| 55 |
+
"Sora 2": "https://sora.chatgpt.com/",
|
| 56 |
+
"Veo 3.1": "https://aistudio.google.com/models/veo-3",
|
| 57 |
+
"Runway Gen-4 Turbo": "https://runwayml.com/research/introducing-runway-gen-4",
|
| 58 |
+
"Wan2.2-I2V-A14B": "https://huggingface.co/Wan-AI/Wan2.2-I2V-A14B-Diffusers",
|
| 59 |
+
"Kling 2.6": "https://app.klingai.com/global/quickstart/klingai-video-26-audio-user-guide",
|
| 60 |
+
"LTX-2": "https://huggingface.co/Lightricks/LTX-2",
|
| 61 |
+
"CogVideoX1.5-5B-I2V": "https://huggingface.co/zai-org/CogVideoX1.5-5B-I2V",
|
| 62 |
+
"HunyuanVideo-I2V": "https://huggingface.co/tencent/HunyuanVideo-I2V",
|
| 63 |
+
}
|
| 64 |
+
|
| 65 |
+
def make_model_link(model_name):
|
| 66 |
+
"""Create a clickable HTML link for a model if URL exists."""
|
| 67 |
+
if model_name in MODEL_LINKS:
|
| 68 |
+
return f'<a href="{MODEL_LINKS[model_name]}" target="_blank">{model_name}</a>'
|
| 69 |
+
return model_name
|
| 70 |
+
|
| 71 |
MODELS_DATA = [
|
| 72 |
{
|
| 73 |
"Model": "Human",
|
|
|
|
| 168 |
# Round numeric columns to 3 decimal places for clean display
|
| 169 |
numeric_cols = df.select_dtypes(include="number").columns
|
| 170 |
df[numeric_cols] = df[numeric_cols].round(3)
|
| 171 |
+
# Add clickable links to model names
|
| 172 |
+
df["Model"] = df["Model"].apply(make_model_link)
|
| 173 |
return df
|
| 174 |
|
| 175 |
|
|
|
|
| 211 |
value=get_filtered_df(DEFAULT_GROUPS),
|
| 212 |
interactive=False,
|
| 213 |
elem_id="leaderboard-table",
|
| 214 |
+
datatype=["html"] + ["str"] * 20, # First column (Model) renders as HTML for links
|
| 215 |
)
|
| 216 |
|
| 217 |
column_selector.change(
|