libokj commited on
Commit
4866d76
·
verified ·
1 Parent(s): 94eb265

Update app/main.py

Browse files
Files changed (1) hide show
  1. app/main.py +2 -2
app/main.py CHANGED
@@ -650,7 +650,7 @@ with gr.Blocks(theme=THEME, title='GenFBDD', css=static.CSS, delete_cache=(3600,
650
  raise ValueError(f"Unsupported method: {method}")
651
  return {input_prot_file: gr.File(str(file), visible=True)}
652
  except Exception as e:
653
- gr.Error(f"Query error: {str(e)}")
654
 
655
  prot_query_btn.click(
656
  fn=pdb_query,
@@ -658,7 +658,7 @@ with gr.Blocks(theme=THEME, title='GenFBDD', css=static.CSS, delete_cache=(3600,
658
  outputs=[input_prot_file],
659
  )
660
 
661
- input_prot_file_change = input_prot_file.change(
662
  fn=lambda: gr.Info('Rendering 3DMol view...'),
663
  ).then(
664
  fn=lambda x, y: gr.Info('3DMol view rendered.'),
 
650
  raise ValueError(f"Unsupported method: {method}")
651
  return {input_prot_file: gr.File(str(file), visible=True)}
652
  except Exception as e:
653
+ raise gr.Error(f"Query error: {str(e)}")
654
 
655
  prot_query_btn.click(
656
  fn=pdb_query,
 
658
  outputs=[input_prot_file],
659
  )
660
 
661
+ input_prot_file.change(
662
  fn=lambda: gr.Info('Rendering 3DMol view...'),
663
  ).then(
664
  fn=lambda x, y: gr.Info('3DMol view rendered.'),