Spaces:
Runtime error
Runtime error
Update app.py
#1
by Xue-Jun - opened
app.py
CHANGED
|
@@ -64,8 +64,9 @@ chirarity_encoder.fit(torch.range(0, len(CHIRALITY_LIST) - 1).unsqueeze(-1))
|
|
| 64 |
def get_data_list(mol_list):
|
| 65 |
data_list = []
|
| 66 |
# mol = Chem.MolFromInchi(inchi, sanitize=False, removeHs=False)
|
| 67 |
-
#
|
| 68 |
for mol in mol_list:
|
|
|
|
| 69 |
weights = []
|
| 70 |
type_idx = []
|
| 71 |
chirality_idx = []
|
|
|
|
| 64 |
def get_data_list(mol_list):
|
| 65 |
data_list = []
|
| 66 |
# mol = Chem.MolFromInchi(inchi, sanitize=False, removeHs=False)
|
| 67 |
+
#
|
| 68 |
for mol in mol_list:
|
| 69 |
+
mol = Chem.AddHs(mol)
|
| 70 |
weights = []
|
| 71 |
type_idx = []
|
| 72 |
chirality_idx = []
|