simonduerr commited on
Commit
191103d
·
1 Parent(s): cba0b5b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -9
app.py CHANGED
@@ -26,19 +26,21 @@ def predict(x):
26
  return x
27
 
28
  #doesn't work
29
- # demo = gr.Interface(
30
- # predict,
31
- # Molecule3D(label="Molecule3D", reps=reps), # interactive version of your component
32
- # Molecule3D(), # static version of your component
33
- # examples=[[example]], # uncomment this line to view the "example version" of your component
34
- # )
35
 
36
  #works
37
  with gr.Blocks() as demo:
38
- inp = Molecule3D("1pga.pdb",label="Molecule3D", reps=reps)
39
- out = Molecule3D(label="Molecule3D", reps=reps)
 
40
  btn = gr.Button("Predict")
41
  btn.click(predict, inputs=inp, outputs=out)
42
 
43
  demo.launch()
44
- # blocks.launch()
 
 
26
  return x
27
 
28
  #doesn't work
29
+ demoInterface = gr.Interface(
30
+ predict,
31
+ Molecule3D(label="Molecule3D", reps=reps), # interactive version of your component
32
+ Molecule3D(), # static version of your component
33
+ examples=[[example]], # uncomment this line to view the "example version" of your component
34
+ )
35
 
36
  #works
37
  with gr.Blocks() as demo:
38
+ with gr.row():
39
+ inp = Molecule3D("1pga.pdb",label="Molecule3D", reps=reps)
40
+ out = Molecule3D(label="Molecule3D", reps=reps)
41
  btn = gr.Button("Predict")
42
  btn.click(predict, inputs=inp, outputs=out)
43
 
44
  demo.launch()
45
+
46
+ demoInterface.launch()