Update app.py
Browse files
app.py
CHANGED
@@ -27,12 +27,14 @@ class Config:
|
|
27 |
|
28 |
# Assuming 'predict_stability' is your function that predicts protein stability
|
29 |
def predict_stability(cfg, model_choice, organism_choice, pdb_file=None, sequence=None):
|
|
|
30 |
# Check if pdb_file is provided
|
31 |
if pdb_file:
|
|
|
32 |
pdb_path = pdb_file.name # Get the path of the uploaded PDB file
|
33 |
os.system("chmod 777 bin/foldseek")
|
34 |
sequences = get_foldseek_seq(pdb_path)
|
35 |
-
|
36 |
# if not sequences:
|
37 |
# return "Failed to extract sequence from the PDB file."
|
38 |
# if model_choice == "SaProt":
|
|
|
27 |
|
28 |
# Assuming 'predict_stability' is your function that predicts protein stability
|
29 |
def predict_stability(cfg, model_choice, organism_choice, pdb_file=None, sequence=None):
|
30 |
+
error0
|
31 |
# Check if pdb_file is provided
|
32 |
if pdb_file:
|
33 |
+
error1
|
34 |
pdb_path = pdb_file.name # Get the path of the uploaded PDB file
|
35 |
os.system("chmod 777 bin/foldseek")
|
36 |
sequences = get_foldseek_seq(pdb_path)
|
37 |
+
error2
|
38 |
# if not sequences:
|
39 |
# return "Failed to extract sequence from the PDB file."
|
40 |
# if model_choice == "SaProt":
|