Spaces:
Runtime error
Runtime error
HailMogambo09
commited on
Commit
•
e10dc20
1
Parent(s):
729fc8a
Container Maybe
Browse files- __pycache__/materials_utils.cpython-312.pyc +0 -0
- app.py +10 -8
__pycache__/materials_utils.cpython-312.pyc
CHANGED
Binary files a/__pycache__/materials_utils.cpython-312.pyc and b/__pycache__/materials_utils.cpython-312.pyc differ
|
|
app.py
CHANGED
@@ -47,14 +47,16 @@ elif st.session_state["step"] == 2:
|
|
47 |
selected_mpid = selected_display.split(" ")[0]
|
48 |
|
49 |
if st.button("Get Data"):
|
50 |
-
st.
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
|
|
|
|
58 |
|
59 |
chemical_name = get_chemical_name(chemical)
|
60 |
if chemical_name:
|
|
|
47 |
selected_mpid = selected_display.split(" ")[0]
|
48 |
|
49 |
if st.button("Get Data"):
|
50 |
+
with st.spinner("Retrieving data..."):
|
51 |
+
st.write(f"Material ID: {selected_mpid}")
|
52 |
+
with st.container(border=True, height=500):
|
53 |
+
data_dict = get_data_from_mpid(selected_mpid)
|
54 |
+
if data_dict:
|
55 |
+
st.write("Structure Description:")
|
56 |
+
description = get_structure_description(selected_mpid)
|
57 |
+
st.write(description)
|
58 |
+
else:
|
59 |
+
st.write("No data found for this material ID.")
|
60 |
|
61 |
chemical_name = get_chemical_name(chemical)
|
62 |
if chemical_name:
|