woshixuhao
commited on
Commit
·
f3a067c
1
Parent(s):
4ad5fdd
Update app.py
Browse files
app.py
CHANGED
@@ -1626,12 +1626,16 @@ if __name__=='__main__':
|
|
1626 |
Single prediction: predict a compound under a given condition including eluent, flow rate and column type\n
|
1627 |
Column recommendation: give the separation probability of two molecules (especially enantiomers) under all column types\n
|
1628 |
"""
|
1629 |
-
gr.
|
1630 |
-
|
1631 |
-
|
1632 |
-
|
1633 |
-
|
1634 |
-
|
|
|
|
|
|
|
|
|
1635 |
demo_1=gr.Interface(fn=predict_separate, inputs=["text", "text", "number", "number",
|
1636 |
gr.Dropdown(['ADH', 'ODH', 'IC', 'IA', 'OJH', 'ASH', 'IC3',
|
1637 |
'IE', 'ID', 'OD3', 'IB', 'AD', 'AD3', 'IF', 'OD',
|
@@ -1640,7 +1644,7 @@ if __name__=='__main__':
|
|
1640 |
info="Choose a HPLC column")], outputs=['text'])
|
1641 |
demo_2=gr.Interface(fn=column_recommendation, inputs=["text", "text", "number", "number"],
|
1642 |
outputs=['dataframe'])
|
1643 |
-
demo=gr.TabbedInterface([demo_1, demo_2], ["Single prediction", "Column recommendation"])
|
1644 |
demo.launch()
|
1645 |
|
1646 |
|
|
|
1626 |
Single prediction: predict a compound under a given condition including eluent, flow rate and column type\n
|
1627 |
Column recommendation: give the separation probability of two molecules (especially enantiomers) under all column types\n
|
1628 |
"""
|
1629 |
+
demo_3 = gr.Blocks()
|
1630 |
+
|
1631 |
+
with demo_3:
|
1632 |
+
gr.Markdown('''
|
1633 |
+
<div>
|
1634 |
+
<h1 style='text-align: center'>Chromatographic enantioseparation prediction</h1>
|
1635 |
+
</div>
|
1636 |
+
''')
|
1637 |
+
gr.Markdown(model_card)
|
1638 |
+
|
1639 |
demo_1=gr.Interface(fn=predict_separate, inputs=["text", "text", "number", "number",
|
1640 |
gr.Dropdown(['ADH', 'ODH', 'IC', 'IA', 'OJH', 'ASH', 'IC3',
|
1641 |
'IE', 'ID', 'OD3', 'IB', 'AD', 'AD3', 'IF', 'OD',
|
|
|
1644 |
info="Choose a HPLC column")], outputs=['text'])
|
1645 |
demo_2=gr.Interface(fn=column_recommendation, inputs=["text", "text", "number", "number"],
|
1646 |
outputs=['dataframe'])
|
1647 |
+
demo=gr.TabbedInterface([demo_1, demo_2,demo_3], ["Single prediction", "Column recommendation","Markdown"])
|
1648 |
demo.launch()
|
1649 |
|
1650 |
|