Spaces:
Runtime error
Runtime error
simonduerr
commited on
Commit
•
2b91070
1
Parent(s):
994ce77
Update app.py
Browse files
app.py
CHANGED
@@ -133,14 +133,15 @@ with demo:
|
|
133 |
inp = gr.Textbox(
|
134 |
placeholder="PDB Code", label="Input structure"
|
135 |
)
|
136 |
-
file = gr.File(file_count="single")
|
137 |
upload_choice.change(fn=toggle_upload_input,
|
138 |
inputs=[upload_choice],
|
139 |
outputs=[inp, file],
|
140 |
queue=False)
|
141 |
|
142 |
-
|
143 |
btn = gr.Button("View structure")
|
|
|
144 |
mol = gr.HTML()
|
145 |
btn.click(fn=update, inputs=[upload_choice, inp, file, public_link], outputs=mol)
|
146 |
_, _, pl = demo.launch() # use public link with share=True locally
|
|
|
133 |
inp = gr.Textbox(
|
134 |
placeholder="PDB Code", label="Input structure"
|
135 |
)
|
136 |
+
file = gr.File(file_count="single", visible=False)
|
137 |
upload_choice.change(fn=toggle_upload_input,
|
138 |
inputs=[upload_choice],
|
139 |
outputs=[inp, file],
|
140 |
queue=False)
|
141 |
|
142 |
+
|
143 |
btn = gr.Button("View structure")
|
144 |
+
gr.Examples([["PDB Code", "2CBA"], ["ESM Atlas", "MGYP001531319262"]], [upload_choice,inp])
|
145 |
mol = gr.HTML()
|
146 |
btn.click(fn=update, inputs=[upload_choice, inp, file, public_link], outputs=mol)
|
147 |
_, _, pl = demo.launch() # use public link with share=True locally
|