Spaces:
Runtime error
Runtime error
dalexanderch
commited on
Commit
•
6eb2572
1
Parent(s):
9967649
Upload app.py
Browse files
app.py
CHANGED
@@ -86,11 +86,11 @@ def fn(glycan, model):
|
|
86 |
demo = gr.Interface(
|
87 |
fn=fn,
|
88 |
inputs=[gr.Textbox(label="Glycan sequence"), gr.Radio(label="Model",choices=["No data augmentation", "Random node deletion", "Ensemble"])],
|
89 |
-
outputs=[gr.Label(num_top_classes=15, label="Prediction"), gr.Image(label="Glycan graph")],
|
90 |
allow_flagging="never",
|
91 |
title="SweetNet demo",
|
92 |
examples=[["GlcOSN(a1-4)GlcA(b1-4)GlcOSN(a1-4)GlcAOS(b1-4)GlcOSN(a1-4)GlcOSN", "No data augmentation"],
|
93 |
["Man(a1-2)Man(a1-3)[Man(a1-3)Man(a1-6)]Man(b1-4)GlcNAc(b1-4)GlcNAc", "Random node deletion"],
|
94 |
-
["
|
95 |
)
|
96 |
demo.launch(debug=True)
|
|
|
86 |
demo = gr.Interface(
|
87 |
fn=fn,
|
88 |
inputs=[gr.Textbox(label="Glycan sequence"), gr.Radio(label="Model",choices=["No data augmentation", "Random node deletion", "Ensemble"])],
|
89 |
+
outputs=[gr.Label(num_top_classes=15, label="Prediction"), gr.Image(label="Glycan graph", shape=(100,100))],
|
90 |
allow_flagging="never",
|
91 |
title="SweetNet demo",
|
92 |
examples=[["GlcOSN(a1-4)GlcA(b1-4)GlcOSN(a1-4)GlcAOS(b1-4)GlcOSN(a1-4)GlcOSN", "No data augmentation"],
|
93 |
["Man(a1-2)Man(a1-3)[Man(a1-3)Man(a1-6)]Man(b1-4)GlcNAc(b1-4)GlcNAc", "Random node deletion"],
|
94 |
+
["GlcNAc(b1-7)LDManHep(a1-6)Glc(a1-2)Glc(a1-3)[Gal(a1-6)]Glc(a1-3)[LDManHep(a1-7)]LDManHepOP(a1-3)LDManHepOP(a1-5)[Kdo(a2-4)]Kdo", "Ensemble"]]
|
95 |
)
|
96 |
demo.launch(debug=True)
|