Spaces:
Running
Running
Commit
·
48fc2fd
1
Parent(s):
0f3b466
Update app.py
Browse files
app.py
CHANGED
@@ -263,7 +263,11 @@ def predict_single(smile,PE,EA,DCM,MeOH,Et20):
|
|
263 |
Rf=Model.get_Rf()
|
264 |
return Rf[0]
|
265 |
|
|
|
|
|
266 |
if __name__=='__main__':
|
|
|
|
|
267 |
theme = gr.themes.Monochrome(
|
268 |
primary_hue="indigo",
|
269 |
secondary_hue="blue",
|
@@ -292,7 +296,11 @@ if __name__=='__main__':
|
|
292 |
</div>
|
293 |
''')
|
294 |
gr.Markdown(model_card)
|
295 |
-
gr.
|
|
|
|
|
|
|
|
|
296 |
demo.launch()
|
297 |
# smile='O=C(OC1C(OC(C)=O)C(OC(C)=O)C(OC(C)=O)C(COC(C)=O)O1)C'
|
298 |
# eluent=[0,0.9,0,0,0]
|
|
|
263 |
Rf=Model.get_Rf()
|
264 |
return Rf[0]
|
265 |
|
266 |
+
def predict_xlsx(file):
|
267 |
+
return file
|
268 |
if __name__=='__main__':
|
269 |
+
|
270 |
+
|
271 |
theme = gr.themes.Monochrome(
|
272 |
primary_hue="indigo",
|
273 |
secondary_hue="blue",
|
|
|
296 |
</div>
|
297 |
''')
|
298 |
gr.Markdown(model_card)
|
299 |
+
with gr.Tab("Flip Text"):
|
300 |
+
gr.Interface(fn=predict_single, inputs=["text", "number","number","number","number","number"], outputs='number')
|
301 |
+
with gr.Tab("Flip Image"):
|
302 |
+
gr.Interface(fn=predict_xlsx, inputs=["file"], outputs="file")
|
303 |
+
|
304 |
demo.launch()
|
305 |
# smile='O=C(OC1C(OC(C)=O)C(OC(C)=O)C(OC(C)=O)C(COC(C)=O)O1)C'
|
306 |
# eluent=[0,0.9,0,0,0]
|