Spaces:
Sleeping
Sleeping
DmitrMakeev
commited on
Commit
·
f7b2141
1
Parent(s):
ad88552
Update templates/index.html
Browse files- templates/index.html +10 -10
templates/index.html
CHANGED
@@ -4,15 +4,15 @@
|
|
4 |
<title>JSON Data</title>
|
5 |
</head>
|
6 |
<body>
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
</body>
|
18 |
</html>
|
|
|
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>
|