Spaces:
Sleeping
Sleeping
Commit
·
064fada
1
Parent(s):
01dbd4c
Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ new_data = {
|
|
18 |
}
|
19 |
|
20 |
# The 'with' statement ensures that the file is properly closed after its suite finishes
|
21 |
-
with open('data/test_output.json', 'w') as f:
|
22 |
# Use json.dump() to write the dictionary to the file
|
23 |
json.dump(new_data, f, indent=4) # `indent=4` is for pretty-printing the JSON file
|
24 |
|
|
|
18 |
}
|
19 |
|
20 |
# The 'with' statement ensures that the file is properly closed after its suite finishes
|
21 |
+
with open('/data/test_output.json', 'w') as f:
|
22 |
# Use json.dump() to write the dictionary to the file
|
23 |
json.dump(new_data, f, indent=4) # `indent=4` is for pretty-printing the JSON file
|
24 |
|