Spaces:
Runtime error
Runtime error
Add acknowledgements
Browse files
app.py
CHANGED
|
@@ -1,13 +1,13 @@
|
|
| 1 |
import os
|
| 2 |
-
import polars as pl
|
| 3 |
|
| 4 |
import gradio as gr
|
| 5 |
import numpy as np
|
| 6 |
import pandas as pd
|
| 7 |
import plotly.graph_objs as go
|
|
|
|
| 8 |
from datasets import concatenate_datasets, load_dataset
|
| 9 |
from pymatgen.analysis.phase_diagram import PDPlotter, PhaseDiagram
|
| 10 |
-
from pymatgen.core import Composition,
|
| 11 |
from pymatgen.core.composition import Composition
|
| 12 |
from pymatgen.entries.computed_entries import (
|
| 13 |
ComputedStructureEntry,
|
|
@@ -204,10 +204,12 @@ warning_message += " scheme will be standardized in a soon to be released update
|
|
| 204 |
warning_message += " now please take caution when analyzing the results of this"
|
| 205 |
warning_message += " application."
|
| 206 |
|
| 207 |
-
|
| 208 |
message = '<div class="alert"><span class="closebtn" onclick="this.parentElement.style.display="none";">×</span>{}</div>Generate a phase diagram for a set of elements using LeMat-Bulk data.'.format(
|
| 209 |
warning_message
|
| 210 |
)
|
|
|
|
|
|
|
|
|
|
| 211 |
|
| 212 |
# Create Gradio interface
|
| 213 |
iface = gr.Interface(
|
|
|
|
| 1 |
import os
|
|
|
|
| 2 |
|
| 3 |
import gradio as gr
|
| 4 |
import numpy as np
|
| 5 |
import pandas as pd
|
| 6 |
import plotly.graph_objs as go
|
| 7 |
+
import polars as pl
|
| 8 |
from datasets import concatenate_datasets, load_dataset
|
| 9 |
from pymatgen.analysis.phase_diagram import PDPlotter, PhaseDiagram
|
| 10 |
+
from pymatgen.core import Composition, Element, Structure
|
| 11 |
from pymatgen.core.composition import Composition
|
| 12 |
from pymatgen.entries.computed_entries import (
|
| 13 |
ComputedStructureEntry,
|
|
|
|
| 204 |
warning_message += " now please take caution when analyzing the results of this"
|
| 205 |
warning_message += " application."
|
| 206 |
|
|
|
|
| 207 |
message = '<div class="alert"><span class="closebtn" onclick="this.parentElement.style.display="none";">×</span>{}</div>Generate a phase diagram for a set of elements using LeMat-Bulk data.'.format(
|
| 208 |
warning_message
|
| 209 |
)
|
| 210 |
+
message += (
|
| 211 |
+
"<br>Built with <a href='https://pymatgen.org/' target='_blank'>Pymatgen</a>.<br>"
|
| 212 |
+
)
|
| 213 |
|
| 214 |
# Create Gradio interface
|
| 215 |
iface = gr.Interface(
|