Spaces:
Runtime error
Runtime error
Commit
·
a56f24f
1
Parent(s):
c0e28dd
Update app.py
Browse files
app.py
CHANGED
@@ -333,6 +333,9 @@ if __name__=='__main__':
|
|
333 |
High-throughput discovery of chemical structure-polarity relationships combining automation and machine-learning techniques
|
334 |
Chem (2022), 3202–3214, 10.1016/j.chempr.2022.08.008\n
|
335 |
Citation2: https://huggingface.co/spaces/woshixuhao/Rf_compare
|
|
|
|
|
|
|
336 |
"""
|
337 |
|
338 |
|
@@ -345,7 +348,7 @@ if __name__=='__main__':
|
|
345 |
gr.Markdown(model_card)
|
346 |
with gr.Tab("Single prediction"):
|
347 |
gr.Interface(fn=predict_single, inputs=["text", "number","number","number","number","number"], outputs='number')
|
348 |
-
with gr.Tab("
|
349 |
gr.Interface(fn=predict_xlsx,description='please upload a .csv file formatted in the form of the example', inputs="file", outputs="file",examples=[os.path.join(os.path.dirname(__file__),"TLC_1.csv")],cache_examples=True)
|
350 |
|
351 |
demo.launch()
|
|
|
333 |
High-throughput discovery of chemical structure-polarity relationships combining automation and machine-learning techniques
|
334 |
Chem (2022), 3202–3214, 10.1016/j.chempr.2022.08.008\n
|
335 |
Citation2: https://huggingface.co/spaces/woshixuhao/Rf_compare
|
336 |
+
## Function\n
|
337 |
+
Single predict: predict a compound under a given eluent system
|
338 |
+
CSV predict: Upload a .csv file with multiple conditions to conduct batch prediction
|
339 |
"""
|
340 |
|
341 |
|
|
|
348 |
gr.Markdown(model_card)
|
349 |
with gr.Tab("Single prediction"):
|
350 |
gr.Interface(fn=predict_single, inputs=["text", "number","number","number","number","number"], outputs='number')
|
351 |
+
with gr.Tab("CSV prediction"):
|
352 |
gr.Interface(fn=predict_xlsx,description='please upload a .csv file formatted in the form of the example', inputs="file", outputs="file",examples=[os.path.join(os.path.dirname(__file__),"TLC_1.csv")],cache_examples=True)
|
353 |
|
354 |
demo.launch()
|