simonduerr commited on
Commit
87cfc54
·
1 Parent(s): a4d873e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -6
app.py CHANGED
@@ -84,11 +84,14 @@ demo = gr.Blocks()
84
 
85
  with demo:
86
  gr.Markdown("# PDB viewer using 3Dmol.js")
87
- inp = gr.Textbox(
88
- placeholder="PDB Code or upload file below", label="Input structure"
89
- )
90
- file = gr.File(file_count="single")
91
- btn = gr.Button("View structure")
92
- mol = gr.HTML()
 
 
 
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()