Spaces:
Runtime error
Runtime error
Better Acknowledgements
Browse files
app.py
CHANGED
@@ -212,7 +212,38 @@ warning_message += " from <a href='https://chemrxiv.org/engage/api-gateway/chemr
|
|
212 |
message = "{} <br><br> Generate a phase diagram for a set of elements using LeMat-Bulk data.".format(
|
213 |
warning_message
|
214 |
)
|
215 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
216 |
|
217 |
# Create Gradio interface
|
218 |
iface = gr.Interface(
|
@@ -226,9 +257,10 @@ iface = gr.Interface(
|
|
226 |
finite_temp_toggle,
|
227 |
],
|
228 |
outputs=gr.Plot(label="Phase Diagram", elem_classes="plot-out"),
|
|
|
229 |
title="LeMaterial - Phase Diagram Viewer",
|
|
|
230 |
description=message,
|
231 |
-
css=".plot-out {background-color: #ffffff;}",
|
232 |
)
|
233 |
|
234 |
# Launch the app
|
|
|
212 |
message = "{} <br><br> Generate a phase diagram for a set of elements using LeMat-Bulk data.".format(
|
213 |
warning_message
|
214 |
)
|
215 |
+
|
216 |
+
footer_content = """
|
217 |
+
<div style="text-align: center; font-size: 14px; line-height: 1.6; padding: 20px 0">
|
218 |
+
<p>
|
219 |
+
This web app is powered by
|
220 |
+
<a href="https://github.com/materialsproject/crystaltoolkit" target="_blank" style="text-decoration: none;">Crystal Toolkit</a>,
|
221 |
+
<a href="https://github.com/materialsproject/dash-mp-components" target="_blank" style="text-decoration: none;">MP Dash Components</a>,
|
222 |
+
and
|
223 |
+
<a href="https://pymatgen.org/" target="_blank" style="text-decoration: none;">Pymatgen</a>.
|
224 |
+
All tools are developed by the
|
225 |
+
<a href="https://next-gen.materialsproject.org/" target="_blank" style="text-decoration: none;">Materials Project</a>.
|
226 |
+
We are grateful for their open-source software packages. This app is intended for data exploration in LeMat-Bulk and is not affiliated with or endorsed by the Materials Project.
|
227 |
+
</p>
|
228 |
+
<hr style="border-top: 1px solid #ddd; margin: 10px 0;">
|
229 |
+
<p>
|
230 |
+
<strong>CC-BY-4.0</strong> requires proper acknowledgement. If you use materials data with an immutable_id starting with <code>mp-</code>, please cite the
|
231 |
+
<a href="https://pubs.aip.org/aip/apm/article/1/1/011002/119685/Commentary-The-Materials-Project-A-materials" target="_blank" style="text-decoration: none;">Materials Project</a>.
|
232 |
+
If you use materials data with an immutable_id starting with <code>agm-</code>, please cite
|
233 |
+
<a href="https://www.science.org/doi/10.1126/sciadv.abi7948" target="_blank" style="text-decoration: none;">Alexandria, PBE</a>
|
234 |
+
or
|
235 |
+
<a href="https://hdl.handle.net/10.1038/s41597-022-01177-w" target="_blank" style="text-decoration: none;">Alexandria PBESol, SCAN</a>.
|
236 |
+
If you use materials data with an immutable_id starting with <code>oqmd-</code>, please cite
|
237 |
+
<a href="https://link.springer.com/article/10.1007/s11837-013-0755-4" target="_blank" style="text-decoration: none;">OQMD</a>.
|
238 |
+
</p>
|
239 |
+
<p>
|
240 |
+
If you use the Phase Diagram or Crystal Viewer, please acknowledge
|
241 |
+
<a href="https://github.com/materialsproject/crystaltoolkit" target="_blank" style="text-decoration: none;">Crystal Toolkit</a>.
|
242 |
+
</p>
|
243 |
+
</div>
|
244 |
+
"""
|
245 |
+
|
246 |
+
footer = gr.Markdown(footer_content)
|
247 |
|
248 |
# Create Gradio interface
|
249 |
iface = gr.Interface(
|
|
|
257 |
finite_temp_toggle,
|
258 |
],
|
259 |
outputs=gr.Plot(label="Phase Diagram", elem_classes="plot-out"),
|
260 |
+
css=".plot-out {background-color: #ffffff;}",
|
261 |
title="LeMaterial - Phase Diagram Viewer",
|
262 |
+
article=footer_content,
|
263 |
description=message,
|
|
|
264 |
)
|
265 |
|
266 |
# Launch the app
|