merle commited on
Commit
cb5d1fc
·
verified ·
1 Parent(s): 2d33ced

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -11,9 +11,8 @@ print('Modules installed')
11
  os.system('pip install --force gradio==3.36.1')
12
  os.system('pip install gradio_client==0.2.7')
13
  #os.system('pip install numpy --upgrade')
14
- os.system('pip install --force numpy==1.24.1')
15
 
16
- os.environ["DGLBACKEND"] = "pytorch"
17
 
18
  if not os.path.exists('./SEQDIFF_230205_dssp_hotspots_25mask_EQtasks_mod30.pt'):
19
  print('Downloading model weights 1')
@@ -216,6 +215,7 @@ def protein_diffusion_model(sequence, seq_len, helix_bias, strand_bias, loop_bia
216
  # sampling loop
217
  plddt_data = []
218
  for j in range(S.max_t):
 
219
  output_seq, output_pdb, plddt = S.take_step_get_outputs(j)
220
  plddt_data.append(plddt)
221
  yield output_seq, output_pdb, display_pdb(output_pdb), get_plddt_plot(plddt_data, S.max_t)
 
11
  os.system('pip install --force gradio==3.36.1')
12
  os.system('pip install gradio_client==0.2.7')
13
  #os.system('pip install numpy --upgrade')
14
+ #os.system('pip install --force numpy==1.24.1')
15
 
 
16
 
17
  if not os.path.exists('./SEQDIFF_230205_dssp_hotspots_25mask_EQtasks_mod30.pt'):
18
  print('Downloading model weights 1')
 
215
  # sampling loop
216
  plddt_data = []
217
  for j in range(S.max_t):
218
+ print(f'on step {j}')
219
  output_seq, output_pdb, plddt = S.take_step_get_outputs(j)
220
  plddt_data.append(plddt)
221
  yield output_seq, output_pdb, display_pdb(output_pdb), get_plddt_plot(plddt_data, S.max_t)