abuendia commited on
Commit
4de3c1c
1 Parent(s): f097bca

Remove pdb download (temp)

Browse files
Files changed (1) hide show
  1. app/main.py +3 -3
app/main.py CHANGED
@@ -124,7 +124,7 @@ def visualize_AF2(tf_pair, a):
124
 
125
  def view_pdb(seg_pair, a):
126
  pdb_path = a.pairs_data[seg_pair].pdb
127
- return view_pdb_html(pdb_path, s3_file_sys=s3_file_sys), a, pdb_path
128
 
129
 
130
  def update_dropdown(x, label):
@@ -308,7 +308,7 @@ You can download specific segment pair PDB files by clicking 'Get PDB.'
308
  segpair = gr.Dropdown(label="Seg pair")
309
  segpair_btn = gr.Button(value="Get PDB")
310
  pdb_html = gr.HTML(label="PDB HTML")
311
- pdb_file = gr.File(label="Download PDB")
312
 
313
  with gr.Row() as row:
314
  with gr.Column():
@@ -332,7 +332,7 @@ You can download specific segment pair PDB files by clicking 'Get PDB.'
332
  ],
333
  )
334
  segpair_btn.click(
335
- view_pdb, inputs=[segpair, af], outputs=[pdb_html, af, pdb_file]
336
  )
337
  celltype_btn.click(
338
  load_and_plot_celltype,
 
124
 
125
  def view_pdb(seg_pair, a):
126
  pdb_path = a.pairs_data[seg_pair].pdb
127
+ return view_pdb_html(pdb_path, s3_file_sys=GET_CONFIG.s3_file_sys), a, pdb_path
128
 
129
 
130
  def update_dropdown(x, label):
 
308
  segpair = gr.Dropdown(label="Seg pair")
309
  segpair_btn = gr.Button(value="Get PDB")
310
  pdb_html = gr.HTML(label="PDB HTML")
311
+ # pdb_file = gr.File(label="Download PDB")
312
 
313
  with gr.Row() as row:
314
  with gr.Column():
 
332
  ],
333
  )
334
  segpair_btn.click(
335
+ view_pdb, inputs=[segpair, af], outputs=[pdb_html, af]
336
  )
337
  celltype_btn.click(
338
  load_and_plot_celltype,