Spaces:
Sleeping
Sleeping
Commit
·
d0c7e45
1
Parent(s):
0211e91
Update templates/index.html
Browse files- templates/index.html +10 -5
templates/index.html
CHANGED
@@ -1,13 +1,18 @@
|
|
1 |
<!DOCTYPE html>
|
2 |
<html>
|
3 |
<head>
|
4 |
-
<title
|
5 |
</head>
|
6 |
<body>
|
7 |
-
|
8 |
-
<
|
9 |
-
|
10 |
-
|
|
|
|
|
|
|
|
|
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>
|