Skip to content

Instantly share code, notes, and snippets.

Created March 18, 2021 10:28
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
<head><title>Upload Image</title></head>
{% if msg %}
<p class = "p3">{{ msg }}</p>
{% endif %}
<h1>Upload new File</h1>
<form method=post enctype=multipart/form-data>
<p><input type=file name=file> <input type=submit value=Upload>
{% if img_src %}
<img height = 400 width = 300 border=1 src="{{ img_src }}">
{% endif %}
{% if extracted_text %}
<p class = "p2"> The extracted text from the image above is: <br>
<b><i> {{ extracted_text }} </i></b>
{% else %}
The extracted text will be displayed here
{% endif %}
{% if pii_text %}
<p class = "p1"> The extracted Personal Identifiable texts from the uploaded image is: <br>
<b><i><red> {{ pii_text }} </red></i></b>
{% endif %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment