gsstec commited on
Commit
4c6b67b
·
verified ·
1 Parent(s): 321f38e

Upload 4 files

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -10,11 +10,11 @@ def run_diffdock_inference(protein_pdb_content, ligand_smiles_string):
10
  This is a lightweight alternative to full DiffDock that works on free CPU tier.
11
  """
12
  try:
13
- # Validate inputs
14
- if not protein_pdb_content or not ligand_smiles_string:
15
  return {
16
  "success": False,
17
- "error_log": "Missing protein or ligand data"
18
  }
19
 
20
  # Import RDKit for molecular analysis
 
10
  This is a lightweight alternative to full DiffDock that works on free CPU tier.
11
  """
12
  try:
13
+ # Validate ligand input (protein is optional for drug-likeness analysis)
14
+ if not ligand_smiles_string or not ligand_smiles_string.strip():
15
  return {
16
  "success": False,
17
+ "error_log": "Missing ligand SMILES string"
18
  }
19
 
20
  # Import RDKit for molecular analysis