Spaces:
Running
Running
adding link for verified model
Browse files
app.py
CHANGED
|
@@ -5,7 +5,6 @@ import numpy as np
|
|
| 5 |
|
| 6 |
import gradio as gr
|
| 7 |
from datasets import load_dataset
|
| 8 |
-
from gradio_leaderboard import Leaderboard
|
| 9 |
from datetime import datetime
|
| 10 |
import os
|
| 11 |
|
|
@@ -65,6 +64,11 @@ def format_dataframe(df, show_percentage=False, selected_groups=None, compact_vi
|
|
| 65 |
|
| 66 |
# Add symbols to model names based on various properties
|
| 67 |
if 'model_name' in display_df.columns:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 68 |
def add_model_symbols(row):
|
| 69 |
name = row['model_name']
|
| 70 |
symbols = []
|
|
@@ -83,7 +87,12 @@ def format_dataframe(df, show_percentage=False, selected_groups=None, compact_vi
|
|
| 83 |
elif name == 'CrystaLLM-pi':
|
| 84 |
symbols.append('β
')
|
| 85 |
|
| 86 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 87 |
|
| 88 |
display_df['model_name'] = df.apply(add_model_symbols, axis=1)
|
| 89 |
|
|
@@ -267,7 +276,7 @@ def gradio_interface() -> gr.Blocks:
|
|
| 267 |
|
| 268 |
Generative machine learning models hold great promise for accelerating materials discovery, particularly through the inverse design of inorganic crystals, enabling an unprecedented exploration of chemical space. Yet, the lack of standardized evaluation frameworks makes it difficult to evaluate, compare and further develop these ML models meaningfully.
|
| 269 |
|
| 270 |
-
**LeMat-GenBench** introduces a unified benchmark for generative models of crystalline materials, with standardized evaluation metrics
|
| 271 |
|
| 272 |
π **Paper**: [arXiv](https://arxiv.org/abs/2512.04562) | π» **Code**: [GitHub](https://github.com/LeMaterial/lemat-genbench) | π§ **Contact**: siddharth.betala-ext [at] entalpic.ai, alexandre.duval [at] entalpic.ai
|
| 273 |
""")
|
|
@@ -327,6 +336,7 @@ Generative machine learning models hold great promise for accelerating materials
|
|
| 327 |
value=formatted_df,
|
| 328 |
interactive=False,
|
| 329 |
wrap=True,
|
|
|
|
| 330 |
column_widths=["180px"] + ["160px"] * (len(formatted_df.columns) - 1) if len(formatted_df.columns) > 0 else None,
|
| 331 |
show_fullscreen_button=True
|
| 332 |
)
|
|
|
|
| 5 |
|
| 6 |
import gradio as gr
|
| 7 |
from datasets import load_dataset
|
|
|
|
| 8 |
from datetime import datetime
|
| 9 |
import os
|
| 10 |
|
|
|
|
| 64 |
|
| 65 |
# Add symbols to model names based on various properties
|
| 66 |
if 'model_name' in display_df.columns:
|
| 67 |
+
# Model links mapping
|
| 68 |
+
model_links = {
|
| 69 |
+
'CrystaLLM-pi': 'https://huggingface.co/c-bone/CrystaLLM-pi_base',
|
| 70 |
+
}
|
| 71 |
+
|
| 72 |
def add_model_symbols(row):
|
| 73 |
name = row['model_name']
|
| 74 |
symbols = []
|
|
|
|
| 87 |
elif name == 'CrystaLLM-pi':
|
| 88 |
symbols.append('β
')
|
| 89 |
|
| 90 |
+
symbol_str = f" {' '.join(symbols)}" if symbols else ""
|
| 91 |
+
|
| 92 |
+
# Add link if model has one
|
| 93 |
+
if name in model_links:
|
| 94 |
+
return f'<a href="{model_links[name]}" target="_blank">{name}</a>{symbol_str}'
|
| 95 |
+
return f"{name}{symbol_str}"
|
| 96 |
|
| 97 |
display_df['model_name'] = df.apply(add_model_symbols, axis=1)
|
| 98 |
|
|
|
|
| 276 |
|
| 277 |
Generative machine learning models hold great promise for accelerating materials discovery, particularly through the inverse design of inorganic crystals, enabling an unprecedented exploration of chemical space. Yet, the lack of standardized evaluation frameworks makes it difficult to evaluate, compare and further develop these ML models meaningfully.
|
| 278 |
|
| 279 |
+
**LeMat-GenBench** introduces a unified benchmark for generative models of crystalline materials, with standardized evaluation metrics for meaningful model comparison, diverse tasks, and this leaderboard to encourage and track community progress.
|
| 280 |
|
| 281 |
π **Paper**: [arXiv](https://arxiv.org/abs/2512.04562) | π» **Code**: [GitHub](https://github.com/LeMaterial/lemat-genbench) | π§ **Contact**: siddharth.betala-ext [at] entalpic.ai, alexandre.duval [at] entalpic.ai
|
| 282 |
""")
|
|
|
|
| 336 |
value=formatted_df,
|
| 337 |
interactive=False,
|
| 338 |
wrap=True,
|
| 339 |
+
datatype=["html"] + [None] * (len(formatted_df.columns) - 1) if len(formatted_df.columns) > 0 else None,
|
| 340 |
column_widths=["180px"] + ["160px"] * (len(formatted_df.columns) - 1) if len(formatted_df.columns) > 0 else None,
|
| 341 |
show_fullscreen_button=True
|
| 342 |
)
|