Spaces:
Sleeping
Sleeping
nastasiasnk
commited on
Commit
•
ae8a3b2
1
Parent(s):
b224536
Update app.py
Browse files
app.py
CHANGED
@@ -119,6 +119,7 @@ def test(input_json):
|
|
119 |
# fetch grasshoper data or not
|
120 |
|
121 |
dfMatrix_gh, dfLanduses_gh, attributeMapperDict_gh, landuseMapperDict_gh, alpha, threshold = getDataFromGrasshopper(
|
|
|
122 |
inputNameMatrix = "matrix",
|
123 |
inputNameLanduse = "landuse_areas",
|
124 |
inputNameAttributeMapper = "attributeMapperDict",
|
@@ -157,6 +158,7 @@ def test(input_json):
|
|
157 |
else:
|
158 |
|
159 |
dfMatrix_gh, dfLanduses_gh, attributeMapperDict_gh, landuseMapperDict_gh, alpha, threshold = getDataFromGrasshopper(
|
|
|
160 |
inputNameMatrix = None,
|
161 |
inputNameLanduse = None,
|
162 |
inputNameAttributeMapper = None,
|
|
|
119 |
# fetch grasshoper data or not
|
120 |
|
121 |
dfMatrix_gh, dfLanduses_gh, attributeMapperDict_gh, landuseMapperDict_gh, alpha, threshold = getDataFromGrasshopper(
|
122 |
+
inputJson = inputs,
|
123 |
inputNameMatrix = "matrix",
|
124 |
inputNameLanduse = "landuse_areas",
|
125 |
inputNameAttributeMapper = "attributeMapperDict",
|
|
|
158 |
else:
|
159 |
|
160 |
dfMatrix_gh, dfLanduses_gh, attributeMapperDict_gh, landuseMapperDict_gh, alpha, threshold = getDataFromGrasshopper(
|
161 |
+
inputJson = inputs,
|
162 |
inputNameMatrix = None,
|
163 |
inputNameLanduse = None,
|
164 |
inputNameAttributeMapper = None,
|