Spaces:
Sleeping
Sleeping
Commit ·
6054f5b
1
Parent(s): adba3f8
Update app.py
Browse files
app.py
CHANGED
|
@@ -21,7 +21,11 @@ def upload_file():
|
|
| 21 |
with open('output.json', 'w') as json_file:
|
| 22 |
json.dump(json_data, json_file, indent=4)
|
| 23 |
|
| 24 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
|
| 26 |
return render_template('index.html')
|
| 27 |
|
|
|
|
| 21 |
with open('output.json', 'w') as json_file:
|
| 22 |
json.dump(json_data, json_file, indent=4)
|
| 23 |
|
| 24 |
+
# Открываем файл JSON и считываем его содержимое
|
| 25 |
+
with open('output.json', 'r') as json_file:
|
| 26 |
+
json_content = json_file.read()
|
| 27 |
+
|
| 28 |
+
return render_template('index.html', json_content=json_content)
|
| 29 |
|
| 30 |
return render_template('index.html')
|
| 31 |
|