Vaishnav14220 commited on
Commit
35712f3
Β·
1 Parent(s): dfa9811

Fix indentation errors in Search and Reaction Detail tabs - ensure all tab content is properly indented within TabItem blocks

Browse files
Files changed (1) hide show
  1. app.py +24 -24
app.py CHANGED
@@ -1271,24 +1271,24 @@ def build_interface() -> gr.Blocks:
1271
  value=True,
1272
  info="Automatically fetch thermodynamic data for searched compounds"
1273
  )
1274
-
1275
- with gr.Row():
1276
- decomp = gr.Checkbox(label="Only decomposition reactions", value=False)
1277
- category = gr.Dropdown(label="Result type filter", choices=CATEGORY_CHOICES, value=str(Category.any.value))
1278
- units = gr.Textbox(
1279
- label="Optional Units token",
1280
- placeholder="Leave blank to use NIST account defaults",
1281
- )
1282
 
1283
  search_button = gr.Button("πŸ” Search NIST", variant="primary")
1284
- search_status = gr.Markdown()
1285
 
1286
- result_table = gr.Dataframe(
1287
- headers=["#", "Records", "Reaction", "Detail URL"],
1288
- datatype=["number", "number", "str", "str"],
1289
- interactive=False,
1290
- wrap=True,
1291
- )
1292
 
1293
  # Search results thermodynamic data
1294
  search_thermo_accordion = gr.Accordion(label="πŸ”¬ Search Query Thermodynamic Data", open=False)
@@ -1299,15 +1299,15 @@ def build_interface() -> gr.Blocks:
1299
  with gr.TabItem("Reaction Detail"):
1300
  with gr.Row():
1301
  with gr.Column(scale=2):
1302
- selection = gr.Dropdown(
1303
- label="Select a reaction from the latest search",
1304
- choices=[],
1305
- interactive=False,
1306
- )
1307
- manual_url = gr.Textbox(
1308
- label="Or paste a NIST detail URL",
1309
- placeholder="https://kinetics.nist.gov/kinetics/ReactionSearch?....",
1310
- )
1311
  with gr.Column(scale=1):
1312
  auto_fetch_thermo = gr.Checkbox(
1313
  label="πŸ”¬ Auto-fetch thermodynamics",
 
1271
  value=True,
1272
  info="Automatically fetch thermodynamic data for searched compounds"
1273
  )
1274
+
1275
+ with gr.Row():
1276
+ decomp = gr.Checkbox(label="Only decomposition reactions", value=False)
1277
+ category = gr.Dropdown(label="Result type filter", choices=CATEGORY_CHOICES, value=str(Category.any.value))
1278
+ units = gr.Textbox(
1279
+ label="Optional Units token",
1280
+ placeholder="Leave blank to use NIST account defaults",
1281
+ )
1282
 
1283
  search_button = gr.Button("πŸ” Search NIST", variant="primary")
1284
+ search_status = gr.Markdown()
1285
 
1286
+ result_table = gr.Dataframe(
1287
+ headers=["#", "Records", "Reaction", "Detail URL"],
1288
+ datatype=["number", "number", "str", "str"],
1289
+ interactive=False,
1290
+ wrap=True,
1291
+ )
1292
 
1293
  # Search results thermodynamic data
1294
  search_thermo_accordion = gr.Accordion(label="πŸ”¬ Search Query Thermodynamic Data", open=False)
 
1299
  with gr.TabItem("Reaction Detail"):
1300
  with gr.Row():
1301
  with gr.Column(scale=2):
1302
+ selection = gr.Dropdown(
1303
+ label="Select a reaction from the latest search",
1304
+ choices=[],
1305
+ interactive=False,
1306
+ )
1307
+ manual_url = gr.Textbox(
1308
+ label="Or paste a NIST detail URL",
1309
+ placeholder="https://kinetics.nist.gov/kinetics/ReactionSearch?....",
1310
+ )
1311
  with gr.Column(scale=1):
1312
  auto_fetch_thermo = gr.Checkbox(
1313
  label="πŸ”¬ Auto-fetch thermodynamics",