Marthee commited on
Commit
bdac482
·
1 Parent(s): 2a3540a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -945,7 +945,7 @@ def retrieveMCCol(gc):
945
  newMcTNames.append(i)
946
  return newMcTNames
947
 
948
- def legendGoogleSheets(SimilarAreaDictionary,colorsUsed):
949
  # authorize uing json file
950
  # SimilarAreaDictionary.drop(['Rounded', 'Width','Height','R','G','B'], axis=1, inplace=True)
951
  SCOPES = [
@@ -1096,7 +1096,7 @@ def MainFunc(plan,green2,img,dp,finalColorArray,number,num1,num2,flag):
1096
  Df2=Df2.reindex(['MC-Template-Name','Perimeter', 'Occurences', 'Total Perimeter','Color', 'Unit'])
1097
 
1098
  # display(Df2)
1099
- gc,spreadsheet_service,spreadsheetId=legendGoogleSheets(Df2,colorsUsed)
1100
  return Df2, imgPerimeter1,image_new1
1101
 
1102
  def PickColorContours(plan,dp,img,radioButton,radioButton1, color,color1,color2,color3,color4,color5,color6,color7,color8,num1=0,num2=0):
 
945
  newMcTNames.append(i)
946
  return newMcTNames
947
 
948
+ def legendGoogleSheets(path,SimilarAreaDictionary,colorsUsed):
949
  # authorize uing json file
950
  # SimilarAreaDictionary.drop(['Rounded', 'Width','Height','R','G','B'], axis=1, inplace=True)
951
  SCOPES = [
 
1096
  Df2=Df2.reindex(['MC-Template-Name','Perimeter', 'Occurences', 'Total Perimeter','Color', 'Unit'])
1097
 
1098
  # display(Df2)
1099
+ gc,spreadsheet_service,spreadsheetId=legendGoogleSheets(plan,Df2,colorsUsed)
1100
  return Df2, imgPerimeter1,image_new1
1101
 
1102
  def PickColorContours(plan,dp,img,radioButton,radioButton1, color,color1,color2,color3,color4,color5,color6,color7,color8,num1=0,num2=0):