Spaces:
Sleeping
Sleeping
nastasiasnk
commited on
Commit
•
19ae57e
1
Parent(s):
a07c0ed
Update app.py
Browse files
app.py
CHANGED
@@ -58,6 +58,10 @@ def test(input_json):
|
|
58 |
"subdomainsAccessibility_dictionary": subdomainsAccessibility_dictionary
|
59 |
}
|
60 |
|
|
|
|
|
|
|
|
|
61 |
return json.dumps(output)
|
62 |
|
63 |
# Define the Gradio interface with a single JSON input
|
|
|
58 |
"subdomainsAccessibility_dictionary": subdomainsAccessibility_dictionary
|
59 |
}
|
60 |
|
61 |
+
for key, subdict in output['subdomainsAccessibility_dictionary'].items():
|
62 |
+
ordered = OrderedDict(sorted(subdict.items(), key=lambda x: int(x[0])))
|
63 |
+
output['subdomainsAccessibility_dictionary'][key] = ordered
|
64 |
+
|
65 |
return json.dumps(output)
|
66 |
|
67 |
# Define the Gradio interface with a single JSON input
|