Spaces:
Sleeping
Sleeping
Update src/app.py
Browse files- src/app.py +8 -2
src/app.py
CHANGED
|
@@ -22,10 +22,16 @@ def load_dataset(file):
|
|
| 22 |
return df, gr.update(interactive=True)
|
| 23 |
|
| 24 |
def load_default_hea():
|
| 25 |
-
|
|
|
|
|
|
|
|
|
|
| 26 |
|
| 27 |
def load_default_al():
|
| 28 |
-
|
|
|
|
|
|
|
|
|
|
| 29 |
|
| 30 |
def optimize_HEA_dataset():
|
| 31 |
return optimize_dataset("./data/HEA.csv")
|
|
|
|
| 22 |
return df, gr.update(interactive=True)
|
| 23 |
|
| 24 |
def load_default_hea():
|
| 25 |
+
file_name = "./data/HEA-dataset-12Dec2024-me.csv"
|
| 26 |
+
df = pd.read_csv(file_name)
|
| 27 |
+
df.columns = ["" if "Unnamed" in col else col for col in df.columns]
|
| 28 |
+
return df, gr.update(interactive=True)
|
| 29 |
|
| 30 |
def load_default_al():
|
| 31 |
+
file_name = "./data/refined_al-alloy-dataset-29Oct2024.csv"
|
| 32 |
+
df = pd.read_csv(file_name)
|
| 33 |
+
df.columns = ["" if "Unnamed" in col else col for col in df.columns]
|
| 34 |
+
return df, gr.update(interactive=True)
|
| 35 |
|
| 36 |
def optimize_HEA_dataset():
|
| 37 |
return optimize_dataset("./data/HEA.csv")
|