Spaces:
Sleeping
Sleeping
filenames
Browse files- inference_app.py +2 -2
inference_app.py
CHANGED
|
@@ -78,7 +78,7 @@ def predict(
|
|
| 78 |
|
| 79 |
if input_protein is None:
|
| 80 |
raise gr.Error("need input_protein")
|
| 81 |
-
ligand_file = "ligand.sdf"
|
| 82 |
conformer = Chem.AddHs(Chem.MolFromSmiles(input_ligand))
|
| 83 |
AllChem.EmbedMolecule(conformer)
|
| 84 |
AllChem.MMFFOptimizeMolecule(conformer)
|
|
@@ -94,7 +94,7 @@ def predict(
|
|
| 94 |
)
|
| 95 |
end_time = time.time()
|
| 96 |
run_time = end_time - start_time
|
| 97 |
-
return [input_protein.name, docking_poses[0]], run_time
|
| 98 |
|
| 99 |
|
| 100 |
def get_metrics(
|
|
|
|
| 78 |
|
| 79 |
if input_protein is None:
|
| 80 |
raise gr.Error("need input_protein")
|
| 81 |
+
ligand_file = Path(input_protein).parent / "ligand.sdf"
|
| 82 |
conformer = Chem.AddHs(Chem.MolFromSmiles(input_ligand))
|
| 83 |
AllChem.EmbedMolecule(conformer)
|
| 84 |
AllChem.MMFFOptimizeMolecule(conformer)
|
|
|
|
| 94 |
)
|
| 95 |
end_time = time.time()
|
| 96 |
run_time = end_time - start_time
|
| 97 |
+
return [input_protein.name, docking_poses[0].name], run_time
|
| 98 |
|
| 99 |
|
| 100 |
def get_metrics(
|