Vaishnav14220 commited on
Commit
c15c518
·
1 Parent(s): d597b72

Remove separate Arrhenius Plot tab, keep plot only in Reaction Detail

Browse files
Files changed (1) hide show
  1. app.py +0 -29
app.py CHANGED
@@ -451,35 +451,6 @@ def build_interface() -> gr.Blocks:
451
  outputs=[detail_markdown, dataset_table, reaction_plot],
452
  )
453
 
454
- with gr.Tab("Arrhenius Plot"):
455
- gr.Markdown(
456
- "Provide Arrhenius parameters (in cgs units) to preview ln k vs 1000/T. "
457
- "Optional data points can be entered as `T,k` per line."
458
- )
459
- with gr.Row():
460
- A_input = gr.Number(label="Pre-exponential factor A (cm³/molecule·s)", value=1.3e-9)
461
- n_input = gr.Number(label="Temperature exponent n", value=-0.495)
462
- Ea_input = gr.Number(label="Activation energy Ea (J/mol)", value=1150)
463
- with gr.Row():
464
- Tmin_input = gr.Number(label="Min temperature (K)", value=500)
465
- Tmax_input = gr.Number(label="Max temperature (K)", value=2500)
466
- Samples_input = gr.Number(label="# Samples", value=100, precision=0)
467
- point_box = gr.Textbox(
468
- label="Optional data points (T,k per line)",
469
- placeholder="1425,1e-10",
470
- lines=4,
471
- value="1425,1e-10",
472
- )
473
- plot_button = gr.Button("Generate Arrhenius Plot", variant="primary")
474
- plot_output = gr.Plot()
475
- plot_status = gr.Markdown()
476
-
477
- plot_button.click(
478
- fn=generate_arrhenius_plot,
479
- inputs=[A_input, n_input, Ea_input, Tmin_input, Tmax_input, Samples_input, point_box],
480
- outputs=[plot_output, plot_status],
481
- )
482
-
483
  return demo
484
 
485
 
 
451
  outputs=[detail_markdown, dataset_table, reaction_plot],
452
  )
453
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
454
  return demo
455
 
456