simonduerr commited on
Commit
6e89cd3
1 Parent(s): 5842019

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -11
app.py CHANGED
@@ -230,18 +230,20 @@ metal3d = gr.Blocks()
230
 
231
  with metal3d:
232
  gr.Markdown("# Metal3D")
233
-
234
- with gr.Group():
235
- inp = gr.Textbox(
236
- placeholder="PDB Code or Uniprot identifier or upload file below", label="Input molecule"
237
- )
238
- file = gr.File(file_count="single", type="file")
239
- with gr.Row():
240
- mode = gr.Radio(
241
- ["All metalbinding residues (ASP, CYS, GLU, HIS)", "All residues"],
242
- label="Residues to use for prediction",
243
  )
244
- custom_resids = gr.Textbox(placeholder="Comma separated list of residues", label="Custom residues")
 
 
 
 
 
 
 
 
 
245
  btn = gr.Button("Run")
246
  gr.Markdown(
247
  """ <small>Inference using CPU-only, can be quite slow for more than 20 residues. Use Colab notebook for GPU acceleration</small>
 
230
 
231
  with metal3d:
232
  gr.Markdown("# Metal3D")
233
+ with gradio.Tabs():
234
+ with gradio.TabItem("App"):
235
+ inp = gr.Textbox( placeholder="PDB Code or Uniprot identifier or upload file below", label="Input molecule"
 
 
 
 
 
 
 
236
  )
237
+ file = gr.File(file_count="single", type="file")
238
+
239
+ with gradio.TabItem("Settings"):
240
+ with gr.Row():
241
+ mode = gr.Radio(
242
+ ["All metalbinding residues (ASP, CYS, GLU, HIS)", "All residues"],
243
+ label="Residues to use for prediction",
244
+ )
245
+ custom_resids = gr.Textbox(placeholder="Comma separated list of residues", label="Custom residues")
246
+ gr.Slider(minimum=0.15,maximum=1, value=0.15, label="Clustering threshold")
247
  btn = gr.Button("Run")
248
  gr.Markdown(
249
  """ <small>Inference using CPU-only, can be quite slow for more than 20 residues. Use Colab notebook for GPU acceleration</small>