simonduerr commited on
Commit
899a11b
·
verified ·
1 Parent(s): 159e888

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -0
app.py ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ from gradio_bio import Molecule3D
3
+
4
+ # prediction routine
5
+ def predict(x):
6
+ return "Model prediction"
7
+
8
+ with gr.Blocks() as demo:
9
+ inp = Molecule3D(label="Molecule3D")
10
+ btn = gr.Button("Run")
11
+ out = gr.HTML("")
12
+ btn.click(fn=predict, inputs=[inp], outputs=[out])
13
+
14
+ demo.launch()