simonduerr commited on
Commit
84461f3
·
verified ·
1 Parent(s): 0e81e14

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -6
app.py CHANGED
@@ -5,12 +5,18 @@ from gradio_molecule2d import molecule2d
5
 
6
  example = molecule2d().example_value()
7
 
8
- demo = gr.Interface(
9
- lambda x:x,
10
- molecule2d(), # interactive version of your component
11
- molecule2d(), # static version of your component
12
- # examples=[[example]], # uncomment this line to view the "example version" of your component
13
- )
 
 
 
 
 
 
14
 
15
 
16
  if __name__ == "__main__":
 
5
 
6
  example = molecule2d().example_value()
7
 
8
+ #demo = gr.Interface(
9
+ # lambda x:x,
10
+ # molecule2d(), # interactive version of your component
11
+ # molecule2d(), # static version of your component
12
+ # # examples=[[example]], # uncomment this line to view the "example version" of your component
13
+ #)
14
+
15
+ with gr.Blocks() as demo:
16
+ inp = gr.molecule2d()
17
+ out = gr.molecule2d()
18
+ btn = gr.Button("Run")
19
+ btn.click(lambda x:x, inp, out)
20
 
21
 
22
  if __name__ == "__main__":