Spaces:
Runtime error
Runtime error
Create templates/index.html
Browse files- templates/index.html +23 -0
templates/index.html
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
| 6 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 7 |
+
<title>Image OCR with musadac/vilanocr</title>
|
| 8 |
+
</head>
|
| 9 |
+
<body>
|
| 10 |
+
<h1>Image OCR with musadac/vilanocr</h1>
|
| 11 |
+
<form action="/upload/" enctype="multipart/form-data" method="post">
|
| 12 |
+
<input type="file" name="image" accept="image/*" required>
|
| 13 |
+
<br>
|
| 14 |
+
<br>
|
| 15 |
+
<button type="submit">Upload</button>
|
| 16 |
+
</form>
|
| 17 |
+
{% if request %}
|
| 18 |
+
<hr>
|
| 19 |
+
<h2>OCR Result:</h2>
|
| 20 |
+
<p>{{ request.result }}</p>
|
| 21 |
+
{% endif %}
|
| 22 |
+
</body>
|
| 23 |
+
</html>
|