Spaces:
Sleeping
Sleeping
| <html> | |
| <head> | |
| <title>IPM Data Visualizer</title> | |
| <style> | |
| body { | |
| font-family: Arial, sans-serif; | |
| text-align: center; | |
| background: #f8f9fa; | |
| padding: 40px; | |
| } | |
| form { | |
| background: white; | |
| padding: 30px; | |
| border-radius: 8px; | |
| display: inline-block; | |
| } | |
| input[type=file], button { | |
| margin: 10px; | |
| } | |
| button { | |
| background-color: #0078d7; | |
| color: white; | |
| padding: 10px 20px; | |
| border: none; | |
| border-radius: 5px; | |
| } | |
| .error { color: red; } | |
| .message { color: green; } | |
| </style> | |
| </head> | |
| <body> | |
| <h2>📊 IPM Golden vs Test Data Visualizer</h2> | |
| {% if error %} | |
| <p class="error">{{ error }}</p> | |
| {% endif %} | |
| {% if message %} | |
| <p class="message">{{ message }}</p> | |
| {% endif %} | |
| {% if not golden_loaded %} | |
| <form method="POST" enctype="multipart/form-data"> | |
| <h3>Step 1: Upload Golden Data (.xlsx)</h3> | |
| <input type="file" name="golden_file" accept=".xlsx" required><br> | |
| <button type="submit">Upload Golden</button> | |
| </form> | |
| {% else %} | |
| <form method="POST" enctype="multipart/form-data"> | |
| <h3>Step 2: Upload New Test Data (.xlsx)</h3> | |
| <input type="file" name="test_file" accept=".xlsx" required><br> | |
| <button type="submit">Upload Test Data</button> | |
| </form> | |
| <br> | |
| <form action="/reset_golden"> | |
| <button style="background-color:#d9534f;">Reset Golden Data</button> | |
| </form> | |
| {% endif %} | |
| </body> | |
| </html> | |