DmitrMakeev commited on
Commit
6054f5b
1 Parent(s): adba3f8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
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
- return render_template('index.html', json_data=json_data)
 
 
 
 
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