Spaces:
Sleeping
Sleeping
File size: 1,651 Bytes
702e044 815a086 702e044 815a086 702e044 815a086 702e044 815a086 702e044 815a086 702e044 815a086 2546160 702e044 2546160 702e044 2546160 702e044 2546160 702e044 2546160 702e044 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | <!DOCTYPE html>
<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>
|