simonduerr commited on
Commit
5c14f98
1 Parent(s): 0b251fd

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -0
app.py ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ def update(name):
4
+ return f"Welcome to Gradio, {name}!"
5
+
6
+ demo = gr.Blocks()
7
+
8
+ with demo:
9
+ gr.Markdown("# Metal3D")
10
+ with gr.Row():
11
+ inp = gr.Textbox(placeholder="2CBA", label="PDB or Uniprot code")
12
+ file = gr.File(file_count=1, label="Upload a PDB file")
13
+ out = gr.Textbox()
14
+ btn = gr.Button("Run Metal3D")
15
+ btn.click(fn=update, inputs=inp, outputs=out)
16
+
17
+ demo.launch()