Spaces:
Running
Running
Update interfaces/iupac2smiles.py
Browse files
interfaces/iupac2smiles.py
CHANGED
@@ -3,9 +3,7 @@ from utils import ChemicalConverter, validate_smiles2iupac, plot_mol, login
|
|
3 |
|
4 |
def convert(access_code, chemical_name, plot):
|
5 |
if not login(access_code):
|
6 |
-
|
7 |
-
plot_image = plot_mol("CCO")
|
8 |
-
return "Currently, you don't have access to the service.", plot_image
|
9 |
# Initialize the ChemicalConverter
|
10 |
converter = ChemicalConverter(mode="IUPAC2SMILES")
|
11 |
converted_name = ""
|
|
|
3 |
|
4 |
def convert(access_code, chemical_name, plot):
|
5 |
if not login(access_code):
|
6 |
+
return "Currently, you don't have access to the service.", plot_mol("CCO")
|
|
|
|
|
7 |
# Initialize the ChemicalConverter
|
8 |
converter = ChemicalConverter(mode="IUPAC2SMILES")
|
9 |
converted_name = ""
|