mgyigit commited on
Commit
ecaee5b
·
verified ·
1 Parent(s): 23efae1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -12
app.py CHANGED
@@ -300,19 +300,13 @@ For more details, see our [paper on arXiv](https://arxiv.org/abs/2302.07868).
300
  with gr.Row():
301
  with gr.Column(scale=1):
302
  # Reuse model selection for custom input
303
- model_name_custom = gr.Radio(
304
- choices=("DrugGEN-AKT1", "DrugGEN-CDK2", "DrugGEN-NoTarget"),
305
- value="DrugGEN-AKT1",
306
- label="Select Target Model",
307
- info="Choose which protein target or general model to use for evaluation"
308
- )
309
  custom_smiles = gr.Textbox(
310
  label="Input SMILES (one per line, maximum 100 molecules)",
311
  placeholder="C(C(=O)O)N\nCCO\n...",
312
  lines=10
313
  )
314
  custom_submit = gr.Button(
315
- value="Evaluate Custom SMILES",
316
  variant="primary",
317
  size="lg"
318
  )
@@ -350,12 +344,12 @@ For more details, see our [paper on arXiv](https://arxiv.org/abs/2302.07868).
350
 
351
  custom_submit.click(
352
  run_inference,
353
- inputs=[gr.State("Custom Input SMILES"), model_name_custom, gr.State(0), gr.State(""), custom_smiles],
354
  outputs=[
355
- image_output_custom,
356
- file_download_custom,
357
- basic_metrics_df_custom,
358
- advanced_metrics_df_custom
359
  ],
360
  api_name="inference_custom"
361
  )
 
300
  with gr.Row():
301
  with gr.Column(scale=1):
302
  # Reuse model selection for custom input
 
 
 
 
 
 
303
  custom_smiles = gr.Textbox(
304
  label="Input SMILES (one per line, maximum 100 molecules)",
305
  placeholder="C(C(=O)O)N\nCCO\n...",
306
  lines=10
307
  )
308
  custom_submit = gr.Button(
309
+ value="Generate Molecules using Custom SMILES",
310
  variant="primary",
311
  size="lg"
312
  )
 
344
 
345
  custom_submit.click(
346
  run_inference,
347
+ inputs=[gr.State("Custom Input SMILES"), model_name, gr.State(0), gr.State(""), custom_smiles],
348
  outputs=[
349
+ image_output,
350
+ file_download,
351
+ basic_metrics_df,
352
+ advanced_metrics_df
353
  ],
354
  api_name="inference_custom"
355
  )