Spaces:
Running
Running
Commit
·
127b572
1
Parent(s):
62cfb78
Update app.py
Browse files
app.py
CHANGED
@@ -346,8 +346,8 @@ if __name__=='__main__':
|
|
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("csv prediction"):
|
349 |
-
gr.Interface(fn=predict_xlsx, inputs="file", outputs="file")
|
350 |
-
|
351 |
demo.launch()
|
352 |
# smile='O=C(OC1C(OC(C)=O)C(OC(C)=O)C(OC(C)=O)C(COC(C)=O)O1)C'
|
353 |
# eluent=[0,0.9,0,0,0]
|
|
|
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("csv prediction"):
|
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()
|
352 |
# smile='O=C(OC1C(OC(C)=O)C(OC(C)=O)C(OC(C)=O)C(COC(C)=O)O1)C'
|
353 |
# eluent=[0,0.9,0,0,0]
|