snajmark commited on
Commit
9700103
·
1 Parent(s): 1e06120

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -422,7 +422,7 @@ def predict_inverse(antimicrobial_activity_target, substrate, microorganism, num
422
 
423
  return (optimized_x['Binder'].iloc[0], optimized_x['NMs_Type'].iloc[0], optimized_x['Primary_Size (nm)'].iloc[0],
424
  optimized_x['NM-Shape'].iloc[0], optimized_x['Concetration (µg/mL)'].iloc[0],
425
- optimized_x['NPs_Synthesis_method'].iloc[0], optimized_x['Application method\n'].iloc[0], optimized_x['Washing_cycles'].iloc[0],
426
  optimized_x['Washing_Detergent'].iloc[0], optimized_x['Washing_Temp'].iloc[0])
427
 
428
 
@@ -484,7 +484,6 @@ with gr.Blocks(css=css_styling, title=page_title, theme=osium_theme) as demo:
484
  optimal_nps_synthesis = gr.Text(label="Optimal nps synthesis method")
485
  optimal_application_method = gr.Text(label="Optimal application method")
486
  gr.Markdown("### Optimal washing conditions")
487
- optimal_washing_cycles = gr.Text(label="Optimal number of washing cycles")
488
  optimal_washing_detergent = gr.Text(label="Optimal washing detergent")
489
  optimal_washing_temperature = gr.Text(label="Optimal washing temperature")
490
 
@@ -508,7 +507,7 @@ with gr.Blocks(css=css_styling, title=page_title, theme=osium_theme) as demo:
508
  antimicrobial_activity_target,
509
  substrate, microorganism, num_washing_cycles,
510
  optimal_binder, optimal_nms_type, optimal_primary_size, optimal_nm_shape,
511
- optimal_concentration, optimal_nps_synthesis, optimal_application_method, optimal_washing_cycles,
512
  optimal_washing_detergent, optimal_washing_temperature,
513
  ],
514
  )
 
422
 
423
  return (optimized_x['Binder'].iloc[0], optimized_x['NMs_Type'].iloc[0], optimized_x['Primary_Size (nm)'].iloc[0],
424
  optimized_x['NM-Shape'].iloc[0], optimized_x['Concetration (µg/mL)'].iloc[0],
425
+ optimized_x['NPs_Synthesis_method'].iloc[0], optimized_x['Application method\n'].iloc[0],
426
  optimized_x['Washing_Detergent'].iloc[0], optimized_x['Washing_Temp'].iloc[0])
427
 
428
 
 
484
  optimal_nps_synthesis = gr.Text(label="Optimal nps synthesis method")
485
  optimal_application_method = gr.Text(label="Optimal application method")
486
  gr.Markdown("### Optimal washing conditions")
 
487
  optimal_washing_detergent = gr.Text(label="Optimal washing detergent")
488
  optimal_washing_temperature = gr.Text(label="Optimal washing temperature")
489
 
 
507
  antimicrobial_activity_target,
508
  substrate, microorganism, num_washing_cycles,
509
  optimal_binder, optimal_nms_type, optimal_primary_size, optimal_nm_shape,
510
+ optimal_concentration, optimal_nps_synthesis, optimal_application_method,
511
  optimal_washing_detergent, optimal_washing_temperature,
512
  ],
513
  )