File size: 425 Bytes
5c14f98
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import gradio as gr

def update(name):
    return f"Welcome to Gradio, {name}!"

demo = gr.Blocks()

with demo:
    gr.Markdown("# Metal3D")
    with gr.Row():
        inp = gr.Textbox(placeholder="2CBA", label="PDB or Uniprot code")
        file  = gr.File(file_count=1, label="Upload a PDB file")
        out = gr.Textbox()
    btn = gr.Button("Run Metal3D")
    btn.click(fn=update, inputs=inp, outputs=out)

demo.launch()