File size: 497 Bytes
899a11b
b8dda2d
899a11b
 
 
 
 
e5dc997
2194460
 
 
 
 
e5dc997
899a11b
2194460
899a11b
 
 
 
89748c9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import gradio as gr
from gradio_molecule3d import Molecule3D

# prediction routine
def predict(x):
    return "Model prediction"

 reps =    [{
      "model": 0,
      "style": "cartoon",
      "color": "whiteCarbon",
      "residue_range": "",
      "around": 0,
      "byres": False}]
with gr.Blocks() as demo:
    inp = Molecule3D(label="Molecule3D", reps=reps)
    btn = gr.Button("Run")
    out = gr.HTML("")
    btn.click(fn=predict, inputs=[inp], outputs=[out])

demo.launch(ssr_mode=False)