Spaces:
Runtime error
Runtime error
split -> subset
Browse files
app.py
CHANGED
|
@@ -18,16 +18,16 @@ from pymatgen.core import Structure
|
|
| 18 |
HF_TOKEN = os.environ.get("HF_TOKEN")
|
| 19 |
top_k = 500
|
| 20 |
|
| 21 |
-
|
| 22 |
|
| 23 |
# Load only the train split of the dataset
|
| 24 |
|
| 25 |
datasets = []
|
| 26 |
-
for
|
| 27 |
dataset = load_dataset(
|
| 28 |
"LeMaterial/leMat-Bulk",
|
|
|
|
| 29 |
token=HF_TOKEN,
|
| 30 |
-
split=split,
|
| 31 |
columns=[
|
| 32 |
"lattice_vectors",
|
| 33 |
"species_at_sites",
|
|
|
|
| 18 |
HF_TOKEN = os.environ.get("HF_TOKEN")
|
| 19 |
top_k = 500
|
| 20 |
|
| 21 |
+
subsets = ["compatible_pbe", "compatible_pbesol", "compatible_scan", "non_compatible"]
|
| 22 |
|
| 23 |
# Load only the train split of the dataset
|
| 24 |
|
| 25 |
datasets = []
|
| 26 |
+
for subset in subsets:
|
| 27 |
dataset = load_dataset(
|
| 28 |
"LeMaterial/leMat-Bulk",
|
| 29 |
+
subset,
|
| 30 |
token=HF_TOKEN,
|
|
|
|
| 31 |
columns=[
|
| 32 |
"lattice_vectors",
|
| 33 |
"species_at_sites",
|