Spaces:
Sleeping
Sleeping
nastasiasnk
commited on
Commit
•
117196b
1
Parent(s):
a2eef60
Update app.py
Browse files
app.py
CHANGED
@@ -186,7 +186,7 @@ def test(input_json):
|
|
186 |
|
187 |
# Apply the filtered mask
|
188 |
dfLanduses_filtered = dfLanduses.loc[valid_indexes]
|
189 |
-
|
190 |
|
191 |
from imports_utils import findUniqueDomains
|
192 |
from imports_utils import findUniqueSubdomains
|
@@ -221,16 +221,16 @@ def test(input_json):
|
|
221 |
LivabilitySubdomainsInputs_dictionary = LivabilitySubdomainsInputs.to_dict('index')
|
222 |
subdomainsAccessibility_dictionary = subdomainsAccessibility.to_dict('index')
|
223 |
LivabilitySubdomainsWeights_dictionary = LivabilitySubdomainsWeights.to_dict('index')
|
224 |
-
|
225 |
|
226 |
df_lu_dict = dfLanduses.to_dict('index')
|
227 |
dm_dictionary = dfMatrix.to_dict('index')
|
228 |
|
229 |
# Prepare the output
|
230 |
output = {
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
"luDomainMapper": landuseMapperDict,
|
235 |
"attributeMapper": livabilityMapperDict,
|
236 |
"mask_connected": mask_connected,
|
|
|
186 |
|
187 |
# Apply the filtered mask
|
188 |
dfLanduses_filtered = dfLanduses.loc[valid_indexes]
|
189 |
+
"""
|
190 |
|
191 |
from imports_utils import findUniqueDomains
|
192 |
from imports_utils import findUniqueSubdomains
|
|
|
221 |
LivabilitySubdomainsInputs_dictionary = LivabilitySubdomainsInputs.to_dict('index')
|
222 |
subdomainsAccessibility_dictionary = subdomainsAccessibility.to_dict('index')
|
223 |
LivabilitySubdomainsWeights_dictionary = LivabilitySubdomainsWeights.to_dict('index')
|
224 |
+
|
225 |
|
226 |
df_lu_dict = dfLanduses.to_dict('index')
|
227 |
dm_dictionary = dfMatrix.to_dict('index')
|
228 |
|
229 |
# Prepare the output
|
230 |
output = {
|
231 |
+
"subdomainsAccessibility_dictionary": subdomainsAccessibility_dictionary,
|
232 |
+
"livability_dictionary": livability_dictionary,
|
233 |
+
"subdomainsWeights_dictionary": LivabilitySubdomainsInputs_dictionary,
|
234 |
"luDomainMapper": landuseMapperDict,
|
235 |
"attributeMapper": livabilityMapperDict,
|
236 |
"mask_connected": mask_connected,
|