Update app.py
Browse files
app.py
CHANGED
|
@@ -1004,13 +1004,13 @@ def update_dropdown(project):
|
|
| 1004 |
def clear(demo):
|
| 1005 |
return None,None,None,None
|
| 1006 |
###############################################################
|
| 1007 |
-
def saveExcel(Dictionary):
|
| 1008 |
print('sdjbfkhbf')
|
| 1009 |
-
|
| 1010 |
# Dictionary.to_excel("output.xlsx",index=False)
|
| 1011 |
xmlFile=Dictionary.to_xml()
|
| 1012 |
print(xmlFile)
|
| 1013 |
-
d=dropbox_upload_file('.',local_file=xmlFile,dropbox_file_path='/savedMeasurements/'+'summaryXML.txt')
|
| 1014 |
|
| 1015 |
|
| 1016 |
|
|
@@ -1074,7 +1074,7 @@ with gr.Blocks(css="#search {background: orangered}") as mainBlock:
|
|
| 1074 |
|
| 1075 |
# getMeasurement(plan,SaveOP) #drop, check
|
| 1076 |
show_button.click(fn=getMeasurement, inputs=[ drop, check ,check1, dp,in2,in3,in4,in5,in6,in7,in8,in9,in10,in11,in12],outputs=img1)
|
| 1077 |
-
buttonSaveDf.click(fn=saveExcel,inputs=out2)
|
| 1078 |
# clr_btn.click(fn=clear,outputs=[project,radio_button,check,drop])
|
| 1079 |
# btn1.click(fn=PickColorContours, inputs=[dp,in1,in2,in3,in4,in5,in6,in7,in8,in9,in10,in11], outputs=out1)
|
| 1080 |
#secoond part
|
|
|
|
| 1004 |
def clear(demo):
|
| 1005 |
return None,None,None,None
|
| 1006 |
###############################################################
|
| 1007 |
+
def saveExcel(Dictionary,plan):
|
| 1008 |
print('sdjbfkhbf')
|
| 1009 |
+
plan=str(plan)
|
| 1010 |
# Dictionary.to_excel("output.xlsx",index=False)
|
| 1011 |
xmlFile=Dictionary.to_xml()
|
| 1012 |
print(xmlFile)
|
| 1013 |
+
d=dropbox_upload_file('.',local_file=xmlFile,dropbox_file_path='/savedMeasurements/'+plan+'summaryXML.txt')
|
| 1014 |
|
| 1015 |
|
| 1016 |
|
|
|
|
| 1074 |
|
| 1075 |
# getMeasurement(plan,SaveOP) #drop, check
|
| 1076 |
show_button.click(fn=getMeasurement, inputs=[ drop, check ,check1, dp,in2,in3,in4,in5,in6,in7,in8,in9,in10,in11,in12],outputs=img1)
|
| 1077 |
+
buttonSaveDf.click(fn=saveExcel,inputs=[out2,project])
|
| 1078 |
# clr_btn.click(fn=clear,outputs=[project,radio_button,check,drop])
|
| 1079 |
# btn1.click(fn=PickColorContours, inputs=[dp,in1,in2,in3,in4,in5,in6,in7,in8,in9,in10,in11], outputs=out1)
|
| 1080 |
#secoond part
|