Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
load only needed columns
Browse files
app.py
CHANGED
@@ -12,7 +12,21 @@ from pymatgen.entries.computed_entries import (ComputedStructureEntry,
|
|
12 |
HF_TOKEN = os.environ.get("HF_TOKEN")
|
13 |
|
14 |
# Load only the train split of the dataset
|
15 |
-
dataset = load_dataset(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
|
17 |
# Convert the train split to a pandas DataFrame
|
18 |
train_df = dataset.to_pandas()
|
|
|
12 |
HF_TOKEN = os.environ.get("HF_TOKEN")
|
13 |
|
14 |
# Load only the train split of the dataset
|
15 |
+
dataset = load_dataset(
|
16 |
+
"LeMaterial/leDataset",
|
17 |
+
token=HF_TOKEN,
|
18 |
+
split="train",
|
19 |
+
columns=[
|
20 |
+
"lattice_vectors",
|
21 |
+
"species_at_sites",
|
22 |
+
"cartesian_site_positions",
|
23 |
+
"energy",
|
24 |
+
"energy_corrected",
|
25 |
+
"immutable_id",
|
26 |
+
"elements",
|
27 |
+
"functional",
|
28 |
+
],
|
29 |
+
)
|
30 |
|
31 |
# Convert the train split to a pandas DataFrame
|
32 |
train_df = dataset.to_pandas()
|