sagawa commited on
Commit
f4d9b4d
1 Parent(s): 58f2544

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -8
app.py CHANGED
@@ -10,14 +10,16 @@ def predict_stability(model_choice, organism_choice, pdb_file=None, sequence=Non
10
  return f"Predicted Stability using {model_choice} for {organism_choice}: Example Output"
11
 
12
  def get_foldseek_seq(pdb_path):
13
- parsed_seqs = get_struc_seq(
14
- "bin/foldseek",
15
- pdb_path,
16
- ["A"],
17
- process_id=random.randint(0, 10000000),
18
- )["A"]
19
- return parsed_seqs
20
-
 
 
21
 
22
 
23
  # Gradio Interface
 
10
  return f"Predicted Stability using {model_choice} for {organism_choice}: Example Output"
11
 
12
  def get_foldseek_seq(pdb_path):
13
+ try:
14
+ parsed_seqs = get_struc_seq(
15
+ "bin/foldseek",
16
+ pdb_path,
17
+ ["A"],
18
+ process_id=random.randint(0, 10000000),
19
+ )["A"]
20
+ return parsed_seqs
21
+ except:
22
+ return None
23
 
24
 
25
  # Gradio Interface