sadgaj commited on
Commit
1b279a5
1 Parent(s): ca99519

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -5
app.py CHANGED
@@ -4,7 +4,11 @@ from rdkit.Chem import Draw
4
  from rdkit import Chem
5
  import selfies as sf
6
 
7
- def greet(name):
 
 
 
 
8
  sf_output = ['[C][=C][C][=C][C][=C][Ring1][=Branch1]',
9
  '[C][=C][C][=C][C][=C][C][=C][Ring1][=Branch1]',
10
  '[C][=C][C][=C][C][=C][Ring1][=Branch1][C][=C][C][=C]',
@@ -31,10 +35,12 @@ def greet(name):
31
 
32
 
33
 
 
 
 
34
 
35
 
36
 
37
-
38
- iface = gr.Interface(fn=greet, inputs="text", outputs="image", title="Molecular Language Model as Multi-task Generator",
39
- )
40
- iface.launch()
 
4
  from rdkit import Chem
5
  import selfies as sf
6
 
7
+ def greet1(name):
8
+
9
+ return name
10
+
11
+ def greet2(name):
12
  sf_output = ['[C][=C][C][=C][C][=C][Ring1][=Branch1]',
13
  '[C][=C][C][=C][C][=C][C][=C][Ring1][=Branch1]',
14
  '[C][=C][C][=C][C][=C][Ring1][=Branch1][C][=C][C][=C]',
 
35
 
36
 
37
 
38
+ greeter_1 = gr.Interface(greet1, inputs="text", outputs="text")
39
+ greeter_2 = gr.Interface(greet2 , inputs="text", outputs="image")
40
+ demo = gr.Parallel(greeter_1, greeter_2)
41
 
42
 
43
 
44
+ #iface = gr.Interface(fn=greet, inputs="text", outputs="image", title="Molecular Language Model as Multi-task Generator",
45
+ # )
46
+ #iface.launch()