Ramlaoui commited on
Commit
512b568
·
1 Parent(s): cf7691e

Move to top

Browse files
Files changed (1) hide show
  1. app.py +8 -5
app.py CHANGED
@@ -213,8 +213,8 @@ message = "{} <br><br> Generate a phase diagram for a set of elements using LeMa
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>,
@@ -225,6 +225,11 @@ footer_content = """
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
@@ -243,8 +248,6 @@ footer_content = """
243
  </div>
244
  """
245
 
246
- footer = gr.Markdown(footer_content)
247
-
248
  # Create Gradio interface
249
  iface = gr.Interface(
250
  fn=create_phase_diagram,
@@ -259,8 +262,8 @@ iface = gr.Interface(
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
 
213
  warning_message
214
  )
215
 
216
+ message += """
217
+ <div style="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>,
 
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
+ </div>
229
+ """
230
+
231
+ footer_content = """
232
+ <div style="font-size: 14px; line-height: 1.6; padding: 20px 0; text-align: center;">
233
  <hr style="border-top: 1px solid #ddd; margin: 10px 0;">
234
  <p>
235
  <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
 
248
  </div>
249
  """
250
 
 
 
251
  # Create Gradio interface
252
  iface = gr.Interface(
253
  fn=create_phase_diagram,
 
262
  outputs=gr.Plot(label="Phase Diagram", elem_classes="plot-out"),
263
  css=".plot-out {background-color: #ffffff;}",
264
  title="LeMaterial - Phase Diagram Viewer",
 
265
  description=message,
266
+ article=footer_content,
267
  )
268
 
269
  # Launch the app