Spaces:
Running
Running
Update interfaces/smiles2iupac.py
Browse files
interfaces/smiles2iupac.py
CHANGED
@@ -3,7 +3,7 @@ from utils import ChemicalConverter, validate_smiles2iupac, plot_mol, login
|
|
3 |
|
4 |
def convert(access_code, chemical_name, style, validate, plot):
|
5 |
if not login(access_code):
|
6 |
-
return "Currently, you don't have access to the service.", "",
|
7 |
# Initialize the ChemicalConverter
|
8 |
converter = ChemicalConverter(mode="SMILES2IUPAC")
|
9 |
converted_name = ""
|
@@ -34,6 +34,6 @@ smiles2iupac = gr.Interface(
|
|
34 |
gr.Text(label="Input-Target similarity score"),
|
35 |
gr.Image(type='pil', label="Molecule Plot", height=170, width=890)],
|
36 |
examples=[
|
37 |
-
[
|
38 |
],
|
39 |
)
|
|
|
3 |
|
4 |
def convert(access_code, chemical_name, style, validate, 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="SMILES2IUPAC")
|
9 |
converted_name = ""
|
|
|
34 |
gr.Text(label="Input-Target similarity score"),
|
35 |
gr.Image(type='pil', label="Molecule Plot", height=170, width=890)],
|
36 |
examples=[
|
37 |
+
[None, "CCO", "BASE", True, True]
|
38 |
],
|
39 |
)
|