Spaces:
Sleeping
Sleeping
simonduerr
commited on
Create app.py
Browse files
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()
|