File tree Expand file tree Collapse file tree 2 files changed +41
-0
lines changed
Expand file tree Collapse file tree 2 files changed +41
-0
lines changed Original file line number Diff line number Diff line change 1+ <!DOCTYPE html>
2+ < html >
3+ < head >
4+ < title > Index</ title >
5+ </ head >
6+ < body >
7+ Hello World.
8+ </ body >
9+ </ html >
Original file line number Diff line number Diff line change 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+
You can’t perform that action at this time.
0 commit comments