Spaces:
Build error
Build error
Commit
·
87cfc54
1
Parent(s):
a4d873e
Update app.py
Browse files
app.py
CHANGED
@@ -84,11 +84,14 @@ demo = gr.Blocks()
|
|
84 |
|
85 |
with demo:
|
86 |
gr.Markdown("# PDB viewer using 3Dmol.js")
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
|
|
|
|
|
|
93 |
btn.click(fn=update, inputs=[inp, file], outputs=mol)
|
94 |
demo.launch()
|
|
|
84 |
|
85 |
with demo:
|
86 |
gr.Markdown("# PDB viewer using 3Dmol.js")
|
87 |
+
with gr.Row():
|
88 |
+
with gr.Group():
|
89 |
+
inp = gr.Textbox(
|
90 |
+
placeholder="PDB Code or upload file below", label="Input structure"
|
91 |
+
)
|
92 |
+
file = gr.File(file_count="single")
|
93 |
+
gr.Examples(["2CBA", "6VXX"], inp)
|
94 |
+
btn = gr.Button("View structure")
|
95 |
+
mol = gr.HTML()
|
96 |
btn.click(fn=update, inputs=[inp, file], outputs=mol)
|
97 |
demo.launch()
|