Spaces:
Runtime error
Runtime error
Vaishnav14220
commited on
Commit
·
4a8bfe4
1
Parent(s):
d64616a
Reorganize Reaction Detail layout: details SVG plot
Browse files
app.py
CHANGED
|
@@ -559,15 +559,27 @@ def build_interface() -> gr.Blocks:
|
|
| 559 |
placeholder="https://kinetics.nist.gov/kinetics/ReactionSearch?....",
|
| 560 |
)
|
| 561 |
detail_button = gr.Button("Fetch Reaction Detail")
|
|
|
|
|
|
|
| 562 |
detail_markdown = gr.Markdown()
|
|
|
|
|
|
|
| 563 |
dataset_table = gr.Dataframe(
|
| 564 |
headers=["Section", "Squib", "Temp [K]", "A", "n", "Ea [J/mole]", "k(298 K)", "Order", "Squib URL"],
|
| 565 |
datatype=["str"] * 9,
|
| 566 |
interactive=False,
|
| 567 |
wrap=True,
|
| 568 |
)
|
| 569 |
-
|
|
|
|
|
|
|
|
|
|
| 570 |
reaction_svg = gr.HTML()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 571 |
|
| 572 |
search_button.click(
|
| 573 |
fn=perform_search,
|
|
|
|
| 559 |
placeholder="https://kinetics.nist.gov/kinetics/ReactionSearch?....",
|
| 560 |
)
|
| 561 |
detail_button = gr.Button("Fetch Reaction Detail")
|
| 562 |
+
|
| 563 |
+
# Reaction metadata and details
|
| 564 |
detail_markdown = gr.Markdown()
|
| 565 |
+
|
| 566 |
+
# Kinetics data table
|
| 567 |
dataset_table = gr.Dataframe(
|
| 568 |
headers=["Section", "Squib", "Temp [K]", "A", "n", "Ea [J/mole]", "k(298 K)", "Order", "Squib URL"],
|
| 569 |
datatype=["str"] * 9,
|
| 570 |
interactive=False,
|
| 571 |
wrap=True,
|
| 572 |
)
|
| 573 |
+
|
| 574 |
+
# Reaction SVG visualization
|
| 575 |
+
with gr.Row():
|
| 576 |
+
gr.Markdown("### Reaction Structure")
|
| 577 |
reaction_svg = gr.HTML()
|
| 578 |
+
|
| 579 |
+
# Arrhenius plot
|
| 580 |
+
with gr.Row():
|
| 581 |
+
gr.Markdown("### Arrhenius Plot")
|
| 582 |
+
reaction_plot = gr.Plot()
|
| 583 |
|
| 584 |
search_button.click(
|
| 585 |
fn=perform_search,
|