Skip to content

Commit c87ba7a

Browse files
committed
add HTML files
1 parent e6129dc commit c87ba7a

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed

templates/index.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>Index</title>
5+
</head>
6+
<body>
7+
Hello World.
8+
</body>
9+
</html>

templates/upload.html

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>Upload Image</title>
5+
</head>
6+
<body>
7+
8+
{% if msg %}
9+
<h1>{{ msg }}</h1>
10+
{% endif %}
11+
12+
<h1>Upload new File</h1>
13+
14+
<form method=post enctype=multipart/form-data>
15+
<p><input type=file name=file>
16+
<input type=submit value=Upload>
17+
</form>
18+
19+
<h1>Result:</h1>
20+
{% if img_src %}
21+
<img src="{{ img_src }}">
22+
{% endif %}
23+
24+
{% if extracted_text %}
25+
<p> The extracted text from the image above is: <b> {{ extracted_text }} </b></p>
26+
27+
{% else %}
28+
The extracted text will be displayed here
29+
{% endif %}
30+
</body>
31+
</html>
32+

0 commit comments

Comments
 (0)