Spaces:
Build error
Build error
simonduerr
commited on
Commit
·
8492c94
1
Parent(s):
e4ce8c2
Update app.py
Browse files
app.py
CHANGED
@@ -34,6 +34,8 @@ with gr.Blocks() as demo:
|
|
34 |
inp = gr.Textbox(label="SMILES string", placeholder="CCCC")
|
35 |
out = gr.HTML()
|
36 |
btn = gr.Button("Run")
|
|
|
|
|
37 |
btn.click(fn=update, inputs=inp, outputs=out)
|
38 |
|
39 |
demo.launch()
|
|
|
34 |
inp = gr.Textbox(label="SMILES string", placeholder="CCCC")
|
35 |
out = gr.HTML()
|
36 |
btn = gr.Button("Run")
|
37 |
+
gr.Examples([["CCCCC", "OC(C(=O)O[C@H]1C[N+]2(CCCOC3=CC=CC=C3)CCC1CC2)(C1=CC=CS1)C1=CC=CS1"]], inp, out, update, cache_examples=True)
|
38 |
+
|
39 |
btn.click(fn=update, inputs=inp, outputs=out)
|
40 |
|
41 |
demo.launch()
|