Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -159,9 +159,9 @@ def similars_node(state: State) -> State:
|
|
| 159 |
legend = [str(compound.smiles) for compound in res]
|
| 160 |
|
| 161 |
img = Draw.MolsToGridImage(sub_mols, legends=legend, molsPerRow=4, subImgSize=(250, 250))
|
| 162 |
-
pic = img.data
|
| 163 |
|
| 164 |
-
filename = "Similars_image"
|
| 165 |
# with open(filename+".png",'wb+') as outf:
|
| 166 |
# outf.write(pic)
|
| 167 |
img.save(filename)
|
|
|
|
| 159 |
legend = [str(compound.smiles) for compound in res]
|
| 160 |
|
| 161 |
img = Draw.MolsToGridImage(sub_mols, legends=legend, molsPerRow=4, subImgSize=(250, 250))
|
| 162 |
+
#pic = img.data
|
| 163 |
|
| 164 |
+
filename = "Similars_image.png"
|
| 165 |
# with open(filename+".png",'wb+') as outf:
|
| 166 |
# outf.write(pic)
|
| 167 |
img.save(filename)
|