BioMike commited on
Commit
0df9304
·
verified ·
1 Parent(s): cb3a9cc

Update interfaces/iupac2smiles.py

Browse files
Files changed (1) hide show
  1. interfaces/iupac2smiles.py +2 -2
interfaces/iupac2smiles.py CHANGED
@@ -3,7 +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
- return "Currently, you don't have access to the service.", None
7
  # Initialize the ChemicalConverter
8
  converter = ChemicalConverter(mode="IUPAC2SMILES")
9
  converted_name = ""
@@ -18,7 +18,7 @@ iupac2smiles = gr.Interface(
18
  fn=convert,
19
  allow_flagging='auto',
20
  inputs=[
21
- gr.Textbox(label="Enter your access code", placeholder="", default=None),
22
  gr.Textbox(label="Enter your IUPAC name", placeholder="Enter IUPAC name here"),
23
  gr.Checkbox(label="Plot molecule", value=True)
24
  ],
 
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.", ""
7
  # Initialize the ChemicalConverter
8
  converter = ChemicalConverter(mode="IUPAC2SMILES")
9
  converted_name = ""
 
18
  fn=convert,
19
  allow_flagging='auto',
20
  inputs=[
21
+ gr.Textbox(label="Enter your access code", placeholder=""),
22
  gr.Textbox(label="Enter your IUPAC name", placeholder="Enter IUPAC name here"),
23
  gr.Checkbox(label="Plot molecule", value=True)
24
  ],