simonduerr commited on
Commit
2194460
·
verified ·
1 Parent(s): 89748c9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -1
app.py CHANGED
@@ -5,8 +5,18 @@ from gradio_molecule3d import Molecule3D
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])
 
5
  def predict(x):
6
  return "Model prediction"
7
 
8
+ reps = [
9
+ {
10
+ "model": 0,
11
+ "style": "cartoon",
12
+ "color": "whiteCarbon",
13
+ "residue_range": "",
14
+ "around": 0,
15
+ "byres": False,
16
+ },
17
+ ]
18
  with gr.Blocks() as demo:
19
+ inp = Molecule3D(label="Molecule3D", reps=reps)
20
  btn = gr.Button("Run")
21
  out = gr.HTML("")
22
  btn.click(fn=predict, inputs=[inp], outputs=[out])