Spaces:
Running
Running
Update interfaces/iupac2smiles.py
Browse files
interfaces/iupac2smiles.py
CHANGED
@@ -18,13 +18,13 @@ iupac2smiles = gr.Interface(
|
|
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 |
],
|
25 |
outputs=[gr.Text(label="Converted Name"),
|
26 |
gr.Image(type='pil', label="Molecule Plot", height=170, width=890)],
|
27 |
examples=[
|
28 |
-
[
|
29 |
],
|
30 |
)
|
|
|
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 |
],
|
25 |
outputs=[gr.Text(label="Converted Name"),
|
26 |
gr.Image(type='pil', label="Molecule Plot", height=170, width=890)],
|
27 |
examples=[
|
28 |
+
[None, "ethanol", True]
|
29 |
],
|
30 |
)
|