DmitrMakeev commited on
Commit
d0c7e45
·
1 Parent(s): 0211e91

Update templates/index.html

Browse files
Files changed (1) hide show
  1. templates/index.html +10 -5
templates/index.html CHANGED
@@ -1,13 +1,18 @@
1
  <!DOCTYPE html>
2
  <html>
3
  <head>
4
- <title>Загрузка файла TXT</title>
5
  </head>
6
  <body>
7
- <h1>Загрузка файла TXT</h1>
8
- <form method="POST" enctype="multipart/form-data" action="/">
9
- <input type="file" name="txt_file" accept=".txt" required>
10
- <button type="submit">Обработать файл</button>
 
 
 
 
11
  </form>
 
12
  </body>
13
  </html>
 
1
  <!DOCTYPE html>
2
  <html>
3
  <head>
4
+ <title>JSON Data</title>
5
  </head>
6
  <body>
7
+ {% if json_data %}
8
+ <h1>JSON Data:</h1>
9
+ <pre>{{ json_data }}</pre>
10
+ {% else %}
11
+ <h1>Upload a TXT File</h1>
12
+ <form method="POST" enctype="multipart/form-data">
13
+ <input type="file" name="txt_file">
14
+ <input type="submit" value="Submit">
15
  </form>
16
+ {% endif %}
17
  </body>
18
  </html>