Spaces:
Sleeping
Sleeping
Upload 4 files
Browse files
app.py
CHANGED
|
@@ -95,8 +95,8 @@ def run_diffdock_inference(protein_pdb_content, ligand_smiles_string):
|
|
| 95 |
"note": str("RDKit-based drug-likeness scoring (lightweight alternative to DiffDock)")
|
| 96 |
}
|
| 97 |
|
| 98 |
-
# Return
|
| 99 |
-
return
|
| 100 |
|
| 101 |
except Exception as runtime_fault:
|
| 102 |
# Build error result with explicit JSON-serializable types
|
|
@@ -106,8 +106,8 @@ def run_diffdock_inference(protein_pdb_content, ligand_smiles_string):
|
|
| 106 |
"diffdock_confidence_score": float(-1.0)
|
| 107 |
}
|
| 108 |
|
| 109 |
-
# Return
|
| 110 |
-
return
|
| 111 |
|
| 112 |
# 🌐 FastAPI app for custom endpoints
|
| 113 |
app = FastAPI()
|
|
|
|
| 95 |
"note": str("RDKit-based drug-likeness scoring (lightweight alternative to DiffDock)")
|
| 96 |
}
|
| 97 |
|
| 98 |
+
# Return dict directly - Gradio will handle JSON serialization
|
| 99 |
+
return result
|
| 100 |
|
| 101 |
except Exception as runtime_fault:
|
| 102 |
# Build error result with explicit JSON-serializable types
|
|
|
|
| 106 |
"diffdock_confidence_score": float(-1.0)
|
| 107 |
}
|
| 108 |
|
| 109 |
+
# Return dict directly - Gradio will handle JSON serialization
|
| 110 |
+
return result
|
| 111 |
|
| 112 |
# 🌐 FastAPI app for custom endpoints
|
| 113 |
app = FastAPI()
|