Spaces:
Sleeping
Sleeping
nastasiasnk
commited on
Commit
•
c6a5618
1
Parent(s):
cd11506
Update app.py
Browse files
app.py
CHANGED
@@ -20,7 +20,7 @@ def test(input_json):
|
|
20 |
# Extract the datatree part which is a list of dictionaries
|
21 |
matrix = inputs['input']["matrix"]
|
22 |
weights = inputs['input']["weights"]
|
23 |
-
|
24 |
|
25 |
alpha = inputs['input']["alpha"]
|
26 |
alpha = float(alpha)
|
@@ -109,11 +109,15 @@ def test(input_json):
|
|
109 |
|
110 |
|
111 |
|
|
|
112 |
|
113 |
-
|
|
|
|
|
114 |
# Prepare the output
|
115 |
output = {
|
116 |
-
"subdomainsAccessibility_dictionary": subdomainsAccessibility_dictionary
|
|
|
117 |
}
|
118 |
|
119 |
|
|
|
20 |
# Extract the datatree part which is a list of dictionaries
|
21 |
matrix = inputs['input']["matrix"]
|
22 |
weights = inputs['input']["weights"]
|
23 |
+
weights = inputs['input']["weights"]
|
24 |
|
25 |
alpha = inputs['input']["alpha"]
|
26 |
alpha = float(alpha)
|
|
|
109 |
|
110 |
|
111 |
|
112 |
+
livability = accessibilityToLivability(df_matrix,subdomainsAccessibility,attributeMapperDict)
|
113 |
|
114 |
+
|
115 |
+
|
116 |
+
|
117 |
# Prepare the output
|
118 |
output = {
|
119 |
+
"subdomainsAccessibility_dictionary": subdomainsAccessibility_dictionary,
|
120 |
+
"livability_dictionary": livability
|
121 |
}
|
122 |
|
123 |
|