sagawa commited on
Commit
33e1d55
1 Parent(s): 64c1665

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -1,6 +1,7 @@
1
  import gradio as gr
2
  import sys
3
  import random
 
4
  sys.path.append("scripts/")
5
  from foldseek_util import get_struc_seq
6
 
@@ -9,6 +10,7 @@ def predict_stability(model_choice, organism_choice, pdb_file=None, sequence=Non
9
  # Check if pdb_file is provided
10
  if pdb_file:
11
  pdb_path = pdb_file.name # Get the path of the uploaded PDB file
 
12
  sequence = get_foldseek_seq(pdb_path)
13
  if not sequence:
14
  return "Failed to extract sequence from the PDB file."
 
1
  import gradio as gr
2
  import sys
3
  import random
4
+ import os
5
  sys.path.append("scripts/")
6
  from foldseek_util import get_struc_seq
7
 
 
10
  # Check if pdb_file is provided
11
  if pdb_file:
12
  pdb_path = pdb_file.name # Get the path of the uploaded PDB file
13
+ os.system("chmod 777 bin/foldseek")
14
  sequence = get_foldseek_seq(pdb_path)
15
  if not sequence:
16
  return "Failed to extract sequence from the PDB file."