Spaces:
Running
Running
File size: 456 Bytes
5c14f98 3897ec7 5c14f98 3897ec7 5c14f98 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
import gradio as gr
def update(name):
return f"Welcome to Gradio, {name}!"
demo = gr.Blocks()
with demo:
gr.Markdown("# Metal3D")
with gr.Group():
inp = gr.Textbox(placeholder="2CBA", label="PDB or Uniprot code")
file = gr.File(file_count=1, label="Upload a PDB file")
btn = gr.Button("Run Metal3D")
out = gr.Textbox()
mol = gr.HTML()
btn.click(fn=update, inputs=inp, outputs=out)
demo.launch() |