| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Invoice OCR</title> | |
| </head> | |
| <body> | |
| <h1>Invoice OCR Processing</h1> | |
| <form action="/upload" method="POST" enctype="multipart/form-data"> | |
| <label for="invoice_image">Upload Invoice Image:</label> | |
| <input type="file" name="invoice_image" id="invoice_image" required> | |
| <button type="submit">Upload</button> | |
| </form> | |
| {% if extracted_text %} | |
| <h2>Extracted Text:</h2> | |
| <pre>{{ extracted_text }}</pre> | |
| {% endif %} | |
| </body> | |
| </html> | |